Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
lbmpy
Commits
f14f3e04
Commit
f14f3e04
authored
4 years ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
skip tests using skipif decorator
parent
75e4c42f
No related branches found
No related tags found
1 merge request
!41
Fix: Boundary Index List Tests now also check `single_link=True`
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lbmpy_tests/test_boundary_indexlist_creation.py
+2
-6
2 additions, 6 deletions
lbmpy_tests/test_boundary_indexlist_creation.py
with
2 additions
and
6 deletions
lbmpy_tests/test_boundary_indexlist_creation.py
+
2
−
6
View file @
f14f3e04
...
@@ -6,10 +6,8 @@ from lbmpy.stencils import get_stencil
...
@@ -6,10 +6,8 @@ from lbmpy.stencils import get_stencil
import
pytest
import
pytest
@pytest.mark.parametrize
(
'
single_link
'
,
[
False
,
True
])
@pytest.mark.parametrize
(
'
single_link
'
,
[
False
,
True
])
@pytest.mark.skipif
(
not
cil
.
cython_funcs_available
,
reason
=
'
Cython functions are not available
'
)
def
test_equivalence_cython_python_version
(
single_link
):
def
test_equivalence_cython_python_version
(
single_link
):
if
not
cil
.
cython_funcs_available
:
pytest
.
skip
(
"
Skipped: Cython functions are not available.
"
)
stencil_2d
=
get_stencil
(
"
D2Q9
"
)
stencil_2d
=
get_stencil
(
"
D2Q9
"
)
stencil_3d
=
get_stencil
(
"
D3Q19
"
)
stencil_3d
=
get_stencil
(
"
D3Q19
"
)
...
@@ -42,10 +40,8 @@ def test_equivalence_cython_python_version(single_link):
...
@@ -42,10 +40,8 @@ def test_equivalence_cython_python_version(single_link):
np
.
testing
.
assert_equal
(
result_python_3d
,
result_cython_3d
)
np
.
testing
.
assert_equal
(
result_python_3d
,
result_cython_3d
)
@pytest.mark.parametrize
(
'
single_link
'
,
[
False
,
True
])
@pytest.mark.parametrize
(
'
single_link
'
,
[
False
,
True
])
@pytest.mark.skipif
(
not
cil
.
cython_funcs_available
,
reason
=
'
Cython functions are not available
'
)
def
test_equivalence_cell_idx_list_cython_python_version
(
single_link
):
def
test_equivalence_cell_idx_list_cython_python_version
(
single_link
):
if
not
cil
.
cython_funcs_available
:
pytest
.
skip
(
"
Skipped: Cython functions are not available.
"
)
stencil_2d
=
get_stencil
(
"
D2Q9
"
)
stencil_2d
=
get_stencil
(
"
D2Q9
"
)
stencil_3d
=
get_stencil
(
"
D3Q19
"
)
stencil_3d
=
get_stencil
(
"
D3Q19
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment