-
Notifications
You must be signed in to change notification settings - Fork 1
Tests #2
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
base: dev_branch
Are you sure you want to change the base?
Tests #2
Conversation
tests/sdt-test.py
Outdated
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.
please explain those numbers in a comment or declare them as variables
tests/sdt-test.py
Outdated
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 use os.getcwd() to get the current working directory?
https://docs.python.org/3/library/os.html#os.getcwd
tests/sdt-test.py
Outdated
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.
Since we only need namedtuple, let's use this format: from collections import namedtuple.
tests/sdt-test.py
Outdated
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.
Align with first argument of the fonction
tests/sdt-test.py
Outdated
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.
lets use single quote everywhere to define strings
tests/sdt-test.py
Outdated
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.
Using exceptions here, would be more pythonic
tests/sdt-test.py
Outdated
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 you define this list in variable out of the function call?
tests/sdt-test.py
Outdated
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.
Align with the function call.
tests/sdt-test.py
Outdated
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.
Here, explain our definition of offset and address and why we need this function.
Makefile is for building the binaries necessary for testing the library. Signed-off-by: Erica Bugden <erica.bugden@efficios.com>
Feedback concerning the completeness and the accuracy of the tests would be much appreciated.
Also maybe suggestions for how to make the error management in the Python more pythonic.