Skip to content

Commit 91cd3c6

Browse files
committed
add reason to summary network test skips when summary network is None
1 parent ff2a139 commit 91cd3c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_networks/test_summary_networks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@pytest.mark.parametrize("automatic", [True, False])
1313
def test_build(automatic, summary_network, random_set):
1414
if summary_network is None:
15-
pytest.skip()
15+
pytest.skip(reason="Nothing to do, because there is no summary network.")
1616

1717
assert summary_network.built is False
1818

@@ -29,7 +29,7 @@ def test_build(automatic, summary_network, random_set):
2929

3030
def test_variable_batch_size(summary_network, random_set):
3131
if summary_network is None:
32-
pytest.skip()
32+
pytest.skip(reason="Nothing to do, because there is no summary network.")
3333

3434
# build with one batch size
3535
summary_network.build(keras.ops.shape(random_set))
@@ -43,7 +43,7 @@ def test_variable_batch_size(summary_network, random_set):
4343

4444
def test_variable_set_size(summary_network, random_set):
4545
if summary_network is None:
46-
pytest.skip()
46+
pytest.skip(reason="Nothing to do, because there is no summary network.")
4747

4848
# build with one set size
4949
summary_network.build(keras.ops.shape(random_set))
@@ -58,7 +58,7 @@ def test_variable_set_size(summary_network, random_set):
5858

5959
def test_serialize_deserialize(summary_network, random_set):
6060
if summary_network is None:
61-
pytest.skip()
61+
pytest.skip(reason="Nothing to do, because there is no summary network.")
6262

6363
summary_network.build(keras.ops.shape(random_set))
6464

@@ -71,7 +71,7 @@ def test_serialize_deserialize(summary_network, random_set):
7171

7272
def test_save_and_load(tmp_path, summary_network, random_set):
7373
if summary_network is None:
74-
pytest.skip()
74+
pytest.skip(reason="Nothing to do, because there is no summary network.")
7575

7676
summary_network.build(keras.ops.shape(random_set))
7777

0 commit comments

Comments
 (0)