-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implementing unittest in test_bfabric_read.py module #28
Comments
The current test implementation:
Example of succesfull test caseendpoints = resource
Example of test case not included yetendpoint = resource
Possible solution in
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to perform unittest on the script
bfabric_read.py
, the moduletest_bfabric_read.py
has to:bfabric_read.main(endpoint, query)
(insted ofres = self.bfapp.read_object(endpoint=endpoint, obj=query)
)To do so the following modifications become necessary:
bfabric_read.py
move the main code into amain(endpoint, query)
functionbfabric_read.main
accessible fromtest_bfabric_read.py
:bfabric/scripts/__init__.py
bfabric.scripts
package tosetup.py
:packages = ['bfabric','bfabric.scripts']
The text was updated successfully, but these errors were encountered: