diff --git a/tests/conftest.py b/tests/conftest.py index 69fce756c6..9364a8af5b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,7 +10,7 @@ def fetch_local_manifest(honor_exclusions: bool = True) -> dict[str, dict[str, s return sites_iterable @pytest.fixture() -def sites_obj(): +def sites_obj() -> SitesInformation: sites_obj = SitesInformation(data_file_path=os.path.join(os.path.dirname(__file__), "../sherlock_project/resources/data.json")) yield sites_obj diff --git a/tests/test_ux.py b/tests/test_ux.py index 1feaf88a19..d82c95283d 100644 --- a/tests/test_ux.py +++ b/tests/test_ux.py @@ -30,7 +30,10 @@ def test_wildcard_username_expansion(): assert sherlock.check_for_parameter('testtest') is False assert sherlock.check_for_parameter('test{?test') is False assert sherlock.check_for_parameter('test?}test') is False - assert sherlock.multiple_usernames('test{?}test') == ["test_test" , "test-test" , "test.test"] + assert sherlock.check_for_parameter('') is False + assert sherlock.multiple_usernames('test{?}test') == ["test_test", "test-test", "test.test"] + assert sherlock.multiple_usernames('testtest') == ["testtest", "testtest", "testtest"] + assert sherlock.multiple_usernames('{?}a{?}') == ["_a_", "-a-", ".a."] @pytest.mark.parametrize('cliargs', [