-
Notifications
You must be signed in to change notification settings - Fork 98
Bug/bug195 #206
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
Bug/bug195 #206
Conversation
src/nifake/metadata/functions.py
Outdated
'direction': 'in', | ||
'enum': None, | ||
'name': 'aNumber', | ||
'type': 'ViInt16', |
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.
Try a different data type
src/nifake/metadata/functions.py
Outdated
'direction': 'in', | ||
'enum': None, | ||
'name': 'aNumber2', | ||
'type': 'ViInt16', |
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.
try a different data type - we already tested ViInt16
src/nifake/tests/test_session.py
Outdated
lib1 = session.library | ||
with nifake.Session('dev1') as session: | ||
lib2 = session.library | ||
assert lib1 == lib2 |
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.
lib1 is lib2
(you don't want to compare, you want to ensure it's the same exact instance)
src/nifake/tests/test_session.py
Outdated
def test_library_singleton(self): | ||
with nifake.Session('dev1') as session: | ||
lib1 = session.library | ||
with nifake.Session('dev1') as session: |
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.
dev2?
# Conflicts: # generated/command_history.bat # generated/command_history.sh # generated/nifake/ctypes_library.py # generated/nifake/tests/test_session.py # src/nidmm/system_tests/test_system_nidmm.py # src/nifake/tests/test_session.py
[ x] This contribution adheres to [CONTRIBUTING.md]
What does this Pull Request accomplish?
Fixes #195
Why should this Pull Request be merged?
It increases the unit test coverage of NI-FAKE, adds additional NI-FAKE functions, and reduces system test redundancy.
What testing has been done?
Run Unit Tests and System Tests