mirror of
https://github.com/httpie/cli.git
synced 2025-08-10 04:17:35 +02:00
Converted all unittest asserts to plain, pytest-powered asserts.
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import os
|
||||
import subprocess
|
||||
from unittest import TestCase
|
||||
|
||||
from tests import TESTS_ROOT, BaseTestCase, skipIf
|
||||
from tests import TESTS_ROOT, skipIf
|
||||
|
||||
|
||||
def has_docutils():
|
||||
@ -25,9 +26,9 @@ def get_readme_errors():
|
||||
return err
|
||||
|
||||
|
||||
class READMETest(BaseTestCase):
|
||||
class READMETest(TestCase):
|
||||
|
||||
@skipIf(not has_docutils(), 'docutils not installed')
|
||||
def test_README_reStructuredText_valid(self):
|
||||
errors = get_readme_errors()
|
||||
self.assertFalse(errors, msg=errors)
|
||||
assert not errors, errors
|
||||
|
Reference in New Issue
Block a user