summaryrefslogtreecommitdiff
path: root/tests/helpers
diff options
context:
space:
mode:
authorLembrun <amadeusk7@free.fr>2021-02-25 21:28:56 +0100
committerLembrun <amadeusk7@free.fr>2021-02-25 21:28:56 +0100
commit0a453396c1a397479deced13c962eae5f851800c (patch)
treef5ed35146c9ebae2fb61458b8b83a9c8c8427def /tests/helpers
parent8909aac898b15b113052f79f8d4de73a89020f56 (diff)
downloadqutebrowser-0a453396c1a397479deced13c962eae5f851800c.tar.gz
qutebrowser-0a453396c1a397479deced13c962eae5f851800c.zip
Rename utils.py to testutils.py
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/test_helper_utils.py12
-rw-r--r--tests/helpers/testutils.py (renamed from tests/helpers/utils.py)0
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/helpers/test_helper_utils.py b/tests/helpers/test_helper_utils.py
index 2f4822df9..5d723429b 100644
--- a/tests/helpers/test_helper_utils.py
+++ b/tests/helpers/test_helper_utils.py
@@ -20,7 +20,7 @@
import pytest
-from helpers import utils
+from helpers import testutils
@pytest.mark.parametrize('val1, val2', [
@@ -32,7 +32,7 @@ from helpers import utils
("foobarbaz", "foo*baz"),
])
def test_partial_compare_equal(val1, val2):
- assert utils.partial_compare(val1, val2)
+ assert testutils.partial_compare(val1, val2)
@pytest.mark.parametrize('val1, val2, error', [
@@ -48,9 +48,9 @@ def test_partial_compare_equal(val1, val2):
(23.42, 13.37, "23.42 != 13.37 (float comparison)"),
])
def test_partial_compare_not_equal(val1, val2, error):
- outcome = utils.partial_compare(val1, val2)
+ outcome = testutils.partial_compare(val1, val2)
assert not outcome
- assert isinstance(outcome, utils.PartialCompareOutcome)
+ assert isinstance(outcome, testutils.PartialCompareOutcome)
assert outcome.error == error
@@ -72,9 +72,9 @@ def test_partial_compare_not_equal(val1, val2, error):
('foo?ar', 'foo?ar', True),
])
def test_pattern_match(pattern, value, expected):
- assert utils.pattern_match(pattern=pattern, value=value) == expected
+ assert testutils.pattern_match(pattern=pattern, value=value) == expected
def test_nop_contextmanager():
- with utils.nop_contextmanager():
+ with testutils.nop_contextmanager():
pass
diff --git a/tests/helpers/utils.py b/tests/helpers/testutils.py
index 8bb622133..8bb622133 100644
--- a/tests/helpers/utils.py
+++ b/tests/helpers/testutils.py