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

On tests disproportion #302

Open
kuraga opened this issue Feb 26, 2024 · 2 comments
Open

On tests disproportion #302

kuraga opened this issue Feb 26, 2024 · 2 comments
Assignees

Comments

@kuraga
Copy link
Contributor

kuraga commented Feb 26, 2024

The keys.hashkey and the keys.typedkey decorators have both unit and functional tests.

But the keys.methodkey decorator has functional tests only.

@tkem
Copy link
Owner

tkem commented Feb 26, 2024

I'll look into that ASAP (whatever that may mean).

@kuraga
Copy link
Contributor Author

kuraga commented Feb 26, 2024

I meant there are no tests such as these for key.methodkey:

def test_hashkey(self, key=cachetools.keys.hashkey):
    self.assertEqual(key(), key())
    self.assertEqual(hash(key()), hash(key()))
    self.assertEqual(key(1, 2, 3), key(1, 2, 3))
    ...

Feel free to ask questions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants