-
Notifications
You must be signed in to change notification settings - Fork 3
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
Task 56 reference comparision #63
Conversation
Related #56 |
Code Climate has analyzed commit 49df870 and detected 18 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
|
||
https://github.com/trezor/python-mnemonic | ||
""" | ||
_ENV_SUBTEST_COUNT = os.getenv('PA193MNEMONICSLYTHERIN_REFERENCE_SUBTEST_COUNT') # type: Optional[str] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we increase the number of tests run in travis by defining this variable? since you mentioned before that travis can run up to 50 minutes, we might as well test it a bit more
Yes, sure, that var. is set in Travis web UI. This way, it can be changed without changing codebase. I’m afraid I have to change it from my account. I can do it in the afternoon when I get to my computer.
Btw, if our fuzz script would use some similar env var. we could also fuzz on travis. :D like loop N times and return 0 on success, 1 on failure (crash due to fuzz).
…--
Martin Vondráček
31. 10. 2019 v 10:39, sobuch <notifications@github.com>:
@sobuch commented on this pull request.
In test-reference/test_mnemoniccli_reference.py:
> +
+try:
+ # noinspection PyPackageRequirements
+ from mnemonic import Mnemonic as TrezorMnemonic
+except ImportError as e:
+ print('{}\nPlease make sure `trezor/python-mnemonic` is installed. See `install.sh`.'.format(e), file=sys.stderr)
+ sys.exit(1)
+
+
+class TestMnemoniccliReference(TestMainBase):
+ """
+ Tests mnemoniccli tool against reference implementation of `trezor/python-mnemonic`.
+
+ https://github.com/trezor/python-mnemonic
+ """
+ _ENV_SUBTEST_COUNT = os.getenv('PA193MNEMONICSLYTHERIN_REFERENCE_SUBTEST_COUNT') # type: Optional[str]
could we increase the number of tests run in travis by defining this variable? since you mentioned before that travis can run up to 50 minutes, we might as well test it a bit more
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Ok, I will make new PR for that change in the fuzzer. |
No description provided.