Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
poetry install

- name: Run simulation_params tests
run: poetry run pytest -rA tests/simulation -vv

run: poetry run pytest -n logical -rA tests/simulation -vv
- name: Run flow360_params tests
run: poetry run pytest -rA --ignore tests/simulation -vv
run: poetry run pytest -n logical -rA --ignore tests/simulation -vv
41 changes: 39 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ numexpr = "^2.10.1"
sphinxcontrib-mermaid = {version="*", optional = true}
pylatex = "^1.4.2"
prettyprinttree = "^2.0.1"
pytest-xdist = {extras = ["psutil"], version = "^3.6.1"}


[tool.poetry.group.dev.dependencies]
Expand Down
6 changes: 6 additions & 0 deletions tests/simulation/params/test_automated_farfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
UserDefinedField,
)
from flow360.component.simulation.primitives import Surface
from flow360.component.simulation.services import clear_context
from flow360.component.simulation.simulation_params import SimulationParams
from flow360.component.simulation.unit_system import SI_unit_system
from flow360.component.surface_mesh_v2 import SurfaceMeshMetaV2, SurfaceMeshV2
Expand All @@ -39,6 +40,11 @@ def change_test_dir(request, monkeypatch):
monkeypatch.chdir(request.fspath.dirname)


@pytest.fixture(autouse=True)
def reset_context():
clear_context()


def test_automated_farfield_surface_usage():
# Test use of GhostSurface in meshing
with pytest.raises(
Expand Down
4 changes: 2 additions & 2 deletions tests/v1/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_om6_release_22_3_3_0_example():
def test_cylinder_example():
Cylinder2D.get_files()
assert os.path.exists(Cylinder2D.case_json)
assert os.path.exists(OM6wing.mesh_json)
assert os.path.exists(OM6wing.mesh_filename)
assert os.path.exists(Cylinder2D.mesh_json)
assert os.path.exists(Cylinder2D.mesh_filename)


def test_airplane_example():
Expand Down
Loading