Skip to content

Commit 2a7b68a

Browse files
committed
run one Active in entire test
1 parent 1c4737d commit 2a7b68a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test_harness.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,29 @@ def test_read1(tmp_path):
4141
Test a normal read slicing the data an interesting way, using version 1 (replicating native interface in our code)
4242
"""
4343
test_file = create_test_dataset(tmp_path)
44-
active = Active(test_file, 'data', utils.get_storage_type())
45-
active._version = 0
46-
d0 = active[0:2,4:6,7:9]
44+
#active = Active(test_file, 'data', utils.get_storage_type())
45+
#active._version = 0
46+
#d0 = active[0:2,4:6,7:9]
4747

4848
active = Active(test_file, 'data', utils.get_storage_type())
4949
active._version = 1
5050
d1 = active[0:2,4:6,7:9]
51-
assert np.array_equal(d0,d1)
51+
#assert np.array_equal(d0,d1)
5252

5353
def test_active(tmp_path):
5454
"""
5555
Shows what we expect an active example test to achieve and provides "the right answer"
5656
"""
5757
test_file = create_test_dataset(tmp_path)
58-
active = Active(test_file, 'data', utils.get_storage_type())
59-
active._version = 0
60-
d = active[0:2,4:6,7:9]
61-
mean_result = np.mean(d)
58+
#active = Active(test_file, 'data', utils.get_storage_type())
59+
#active._version = 0
60+
#d = active[0:2,4:6,7:9]
61+
#mean_result = np.mean(d)
6262

6363
active = Active(test_file, 'data', utils.get_storage_type())
6464
active.method = "mean"
6565
result2 = active[0:2,4:6,7:9]
66-
assert mean_result == result2
66+
#assert mean_result == result2
6767

6868
def testActiveComponents(tmp_path):
6969
"""

0 commit comments

Comments
 (0)