Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail of query_string #1177

Closed
lk-geimfari opened this issue Jan 20, 2022 · 0 comments
Closed

Fail of query_string #1177

lk-geimfari opened this issue Jan 20, 2022 · 0 comments
Labels
bug Unexpected behaviour and bugs

Comments

@lk-geimfari
Copy link
Owner

lk-geimfari commented Jan 20, 2022

 ______________________ TestInternet.test_query_string[8] _______________________

self = <tests.test_providers.test_internet.TestInternet object at 0x7f6d503de0a0>
net = <mimesis.providers.internet.Internet object at 0x7f6d503ded00>, length = 8

    @pytest.mark.parametrize("length", [4, 6, 8, None])
    def test_query_string(self, net, length):
        query_string = net.query_string(length)
        query_params_count = len(query_string.split("&"))
    
        if length is None:
            assert 1 <= query_params_count <= 10
        else:
>           assert query_params_count == length
E           assert 7 == 8

tests/test_providers/test_internet.py:118: AssertionError
@lk-geimfari lk-geimfari added the bug Unexpected behaviour and bugs label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behaviour and bugs
Projects
None yet
Development

No branches or pull requests

1 participant