Skip to content

Commit 4647344

Browse files
committed
Remove pytest-benchmark from development dependencies and update test for weak password to eliminate benchmarking
1 parent 7f13146 commit 4647344

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
author='Vincenzo Greco',
1212
author_email='[email protected]',
1313
extras_require={
14-
'dev': ['pytest', 'pytest-cov', 'pytest-benchmark'],
14+
'dev': ['pytest', 'pytest-cov'],
1515
},
1616
url='https://github.com/Buba98/regex_enumerator',
1717
keywords=['regex', 'regex enumerator', 'regular-expression', 'enumerator', 'string-generation',

tests/test_mixed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_done():
2929
f_finite(regexEnumerator, possibilities)
3030

3131

32-
def test_weak_password(benchmark):
32+
def test_weak_password():
3333
regexEnumerator = RegexEnumerator(
3434
r'[Ll][Oo0][Vv][Ee3]([Yy][Oo0][Uu])?(2023|2024)[!1.]{1,2}')
3535
possibilities = []
@@ -52,4 +52,4 @@ def test_weak_password(benchmark):
5252
possibilities.append(
5353
l_char + o + v + e + y + year + special_1 + special_2)
5454

55-
benchmark(f_finite, regexEnumerator, possibilities)
55+
f_finite(regexEnumerator, possibilities)

0 commit comments

Comments
 (0)