mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 03:02:15 +02:00
Switch from nose to pytest (#5282)
* Use pipstrap to install a good version of pip * Use pytest in cb-auto tests * Remove nose usage in auto_test.py * remove nose dev dep * use pytest in test_tests * Use pytest in tox * Update dev dependency pinnings * remove nose multiprocess lines * Use pytest for coverage * Use older py and pytest for old python versions * Add test for Error.__str__ * pin pytest in oldest test * Fix tests for DNS-DO plugin on py26 * Work around bug for Python 3.3 * Clarify dockerfile comments
This commit is contained in:
@@ -5,7 +5,6 @@ import unittest
|
||||
|
||||
import digitalocean
|
||||
import mock
|
||||
import six
|
||||
|
||||
from certbot import errors
|
||||
from certbot.plugins import dns_test_common
|
||||
@@ -134,8 +133,8 @@ class DigitalOceanClientTest(unittest.TestCase):
|
||||
|
||||
correct_record_mock.destroy.assert_called()
|
||||
|
||||
six.assertCountEqual(self, first_record_mock.destroy.call_args_list, [])
|
||||
six.assertCountEqual(self, last_record_mock.destroy.call_args_list, [])
|
||||
self.assertFalse(first_record_mock.destroy.call_args_list)
|
||||
self.assertFalse(last_record_mock.destroy.call_args_list)
|
||||
|
||||
def test_del_txt_record_error_finding_domain(self):
|
||||
self.manager.get_all_domains.side_effect = API_ERROR
|
||||
|
||||
Reference in New Issue
Block a user