-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/tests #16
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
Fix/tests #16
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2688759
fix(tests): tests in src and fix paths
JulienChampagnol bb7f263
uncomment tests
JulienChampagnol 0d512f8
add datas
JulienChampagnol c1cb848
add CI
JulienChampagnol c3a4f1e
relative imports
JulienChampagnol fb81a0c
script
JulienChampagnol 32dddc6
CICD pipeline
JulienChampagnol 19fb81b
Update pyproject.toml
JulienChampagnol 44b7c51
change start command
JulienChampagnol 7fabf4a
Merge branch 'fix/tests' of https://github.com/Geode-solutions/OpenGe…
JulienChampagnol e629346
remove CI
JulienChampagnol 617833e
pyproject.toml
JulienChampagnol 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 |
---|---|---|
|
@@ -5,7 +5,6 @@ venv/ | |
.vscode/ | ||
__pycache__/ | ||
.env | ||
data/ | ||
/node_modules | ||
latest_logs | ||
schemas.json |
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
File renamed without changes.
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
Empty file.
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
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
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,105 @@ | ||
import os | ||
|
||
|
||
def test_create_visualization(server): | ||
server.call("create_visualization") | ||
assert server.compare_image(3, "create_visualization.jpeg") == True | ||
|
||
|
||
# def test_reset_camera(server): | ||
# server.call("reset_camera") | ||
# assert server.compare_image(3, "reset_camera.jpeg") == True | ||
|
||
|
||
# def test_create_object_pipeline(server): | ||
# server.call("create_object_pipeline", [{"id": "123456", "file_name": "hat.vtp"}]) | ||
# assert server.compare_image(3, "create_object_pipeline.jpeg") == True | ||
|
||
|
||
# def test_delete_object_pipeline(server): | ||
# server.call("create_object_pipeline", [{"id": "123456789", "file_name": "hat.vtp"}]) | ||
# assert server.compare_image(3, "create_object_pipeline.jpeg") == True | ||
|
||
# server.call("delete_object_pipeline", [{"id": "123456789"}]) | ||
# assert server.compare_image(3, "delete_object_pipeline.jpeg") == True | ||
|
||
|
||
# def test_toggle_object_visibility(server): | ||
# server.call("create_object_pipeline", [{"id": "123456789", "file_name": "hat.vtp"}]) | ||
# assert server.compare_image(3, "create_object_pipeline.jpeg") == True | ||
|
||
# server.call("toggle_object_visibility", [{"id": "123456789", "is_visible": False}]) | ||
# assert server.compare_image(3, "toggle_object_visibility_1.jpeg") == True | ||
|
||
# server.call("toggle_object_visibility", [{"id": "123456789", "is_visible": True}]) | ||
# assert server.compare_image(3, "toggle_object_visibility_2.jpeg") == True | ||
|
||
|
||
# def test_apply_textures(server): | ||
|
||
# server.call( | ||
# "create_object_pipeline", | ||
# [{"id": "123456789", "file_name": "hat.vtp"}], | ||
# ) | ||
# assert server.compare_image(3, "create_object_pipeline.jpeg") == True | ||
|
||
# server.call( | ||
# "apply_textures", | ||
# [ | ||
# { | ||
# "id": "123456789", | ||
# "textures": [ | ||
# { | ||
# "texture_name": "lambert2SG", | ||
# "texture_file_name": "hat_lambert2SG.vti", | ||
# } | ||
# ], | ||
# } | ||
# ], | ||
# ) | ||
# assert server.compare_image(3, "apply_textures.jpeg") == True | ||
|
||
|
||
# def test_get_point_position(server): | ||
|
||
# server.call( | ||
# "create_object_pipeline", | ||
# [{"id": "123456789", "file_name": "hat.vtp"}], | ||
# ) | ||
# assert server.compare_image(3, "create_object_pipeline.jpeg") == True | ||
|
||
# server.call("get_point_position", [{"x": 0, "y": 0}]) | ||
# response = server.get_response() | ||
# assert "x" in response["result"] | ||
# assert "y" in response["result"] | ||
# assert "z" in response["result"] | ||
# x = response["result"]["x"] | ||
# y = response["result"]["y"] | ||
# z = response["result"]["z"] | ||
# assert type(x) is float | ||
# assert type(y) is float | ||
# assert type(z) is float | ||
|
||
|
||
# def test_toggle_edge_visibility(server): | ||
|
||
# server.call( | ||
# "create_object_pipeline", | ||
# [{"id": "123456789", "file_name": "hat.vtp"}], | ||
# ) | ||
# assert server.compare_image(3, "create_object_pipeline.jpeg") == True | ||
|
||
# server.call("toggle_edge_visibility", [{"id": "123456789", "visibility": True}]) | ||
# assert server.compare_image(3, "toggle_edge_visibility.jpeg") == True | ||
|
||
|
||
# def test_set_color(server): | ||
|
||
# server.call( | ||
# "create_object_pipeline", | ||
# [{"id": "123456789", "file_name": "hat.vtp"}], | ||
# ) | ||
# assert server.compare_image(3, "create_object_pipeline.jpeg") == True | ||
|
||
# server.call("set_color", [{"id": "123456789", "red": 50, "green": 2, "blue": 250}]) | ||
# assert server.compare_image(3, "set_color.jpeg") == True |
This file was deleted.
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.