-
Notifications
You must be signed in to change notification settings - Fork 1
454 add unit tests #466
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
Merged
Merged
454 add unit tests #466
Changes from 32 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
8309bc7
WIP setup, don't quite understand mocking yet
kjy5 eaa756b
WIP refactoring bindings
kjy5 352d619
Refactored binding
kjy5 4aa5caa
Test get_display_name
kjy5 a137ddc
Test get_platform_info
kjy5 c79e3e3
WIP get_manipulators, should use patch
kjy5 2f1e199
Correct usage of patching
kjy5 c59ab7e
Fix other tests to patch
kjy5 47e14ce
Test get manipulator exception
kjy5 91088c6
Use fixtures for instances
kjy5 1ededf7
Add coverage, add spy
kjy5 7dee21a
Test get_position
kjy5 c146ec9
angles and shank
kjy5 ae0039d
Reorganize values, test inside_brain set position
kjy5 86673e6
WIP test tolerance
kjy5 6ad234b
Moved console, test set tolerance
kjy5 78acf55
set position
kjy5 c8b991b
set depth, set inside brain
kjy5 cd723fa
100% cover platform_handler
kjy5 c73603e
WIP correcting names
kjy5 9fe8b30
Review fixes
kjy5 e8ee758
Refactor test cases to remove fake_binding parameter and improve clarity
kjy5 e36b320
Return fake_binding usage
kjy5 6b014b5
Use mocked binding
kjy5 2c1b249
Use mocks instead of instances
kjy5 a8a1524
Test server launch
kjy5 cbdd159
Test server init
kjy5 cf4b8e6
Test proxy client launch and init
kjy5 d4c5a90
Connect and disconnect
kjy5 f443df1
Merge branch 'main' into 454-add-unit-tests
kjy5 564ae3b
100% backend coverage
kjy5 ca78f9a
Added test workflow
kjy5 f76fa21
Fixed workflow
kjy5 289baea
Fixed copilot suggestions
kjy5 98052c9
Hatch static analysis
kjy5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Test | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: 🛎 Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.head_ref }} | ||
|
|
||
| - name: 🔭 Install UV | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| enable-cache: true | ||
| cache-dependency-glob: "**/pyproject.toml" | ||
|
|
||
| - name: 🐍 Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.13" | ||
|
|
||
| - name: 📦 Install Hatch | ||
| uses: pypa/hatch@install | ||
|
|
||
| - name: 🧪 Type Tests | ||
| run: hatch run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.