Commit 35a282a
authored
Add function to return session handle from nisync (ni#18)
Signed-off-by: wchung <[email protected]>
- [x] This contribution adheres to
[CONTRIBUTING.md](https://github.com/ni/nisync-python/blob/main/CONTRIBUTING.md).
### What does this Pull Request accomplish?
Add a function that return read-only session handle.
### Why should this Pull Request be merged?
Existing function that returning session object cannot fulfill
NI-Digital use case.
### What testing has been done?
PR Build
[manual pytest]
1. Added and ran a new regression test for session_handle function.
2. Ran command "poetry run ni-python-styleguide lint" and "poetry run
ni-python-styleguide fix" to correct the code format as one of the
requirement in CONTRIBUTING.md.

---------
Signed-off-by: wchung <[email protected]>1 parent a3ad6db commit 35a282a
File tree
3 files changed
+216
-195
lines changed- nisync
- templates/nisync
- tests/unit
3 files changed
+216
-195
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
867 | 871 | | |
868 | 872 | | |
869 | 873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
652 | 657 | | |
653 | 658 | | |
654 | 659 | | |
| |||
0 commit comments