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:
Brad Warren
2017-12-01 10:59:55 -08:00
committed by GitHub
parent d246ba78c7
commit 48173ed1cb
25 changed files with 74 additions and 79 deletions
@@ -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