Skip to content

Commit 3f31ecd

Browse files
author
Jaya Mohan
committed
check preconditions for all tests
1 parent 6809d6d commit 3f31ecd

7 files changed

+22
-15
lines changed

tests/interfaces/python/test_0_initialize.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# test initializing exago only once
2-
import exago
3-
from check_preconditions import check_preconditions
42
import os
53
import pytest
64
import mpi4py.rc
75
mpi4py.rc.threads = False
86
from mpi4py import MPI # noqa
7+
from check_preconditions import check_preconditions
98
check_preconditions()
109
import exago # noqa
1110

tests/interfaces/python/test_1_pflow.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import os
22
import pytest
3-
from check_preconditions import check_preconditions
43
import mpi4py.rc
54
mpi4py.rc.threads = False
65
from mpi4py import MPI # noqa
7-
import exago # noqa
6+
from check_preconditions import check_preconditions
7+
check_preconditions()
8+
import exago # noqa
9+
810

911
check_preconditions()
1012

tests/interfaces/python/test_2_opflow.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import os
22
import pytest
3-
from check_preconditions import check_preconditions
4-
import mpi4py.rc
5-
mpi4py.rc.threads = False
63
from mpi4py import MPI # noqa
7-
import exago # noqa
4+
mpi4py.rc.threads = False
5+
from check_preconditions import check_preconditions
6+
check_preconditions()
7+
import exago # noqa
88

99
check_preconditions()
1010

tests/interfaces/python/test_3_scopflow.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
import os
33
import shutil
44
import pytest
5-
from check_preconditions import check_preconditions
65
import mpi4py.rc
76
mpi4py.rc.threads = False
87
from mpi4py import MPI # noqa
9-
import exago # noqa
8+
from check_preconditions import check_preconditions
9+
check_preconditions()
10+
import exago # noqa
1011

1112
check_preconditions()
1213

tests/interfaces/python/test_4_sopflow.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
import os
33
import shutil
44
import pytest
5-
from check_preconditions import check_preconditions
65
import mpi4py.rc
76
mpi4py.rc.threads = False
87
from mpi4py import MPI # noqa
9-
import exago # noqa
8+
from check_preconditions import check_preconditions
9+
check_preconditions()
10+
import exago # noqa
11+
1012

1113
check_preconditions()
1214

tests/interfaces/python/test_5_tcopflow.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import os
44
import shutil
55
import pytest
6-
from check_preconditions import check_preconditions
7-
import exago
86
import mpi4py.rc
97
mpi4py.rc.threads = False
8+
from check_preconditions import check_preconditions
9+
check_preconditions()
10+
import exago
1011

1112
check_preconditions()
1213

tests/interfaces/python/test_9_finalize.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# test only run once things here
22
import pytest
3-
import exago
43
from check_preconditions import check_preconditions
4+
check_preconditions()
5+
import exago
6+
57

68
check_preconditions()
79

0 commit comments

Comments
 (0)