Skip to content

Commit d2c25dc

Browse files
committed
adding hypothesis pytest marker
1 parent 852275c commit d2c25dc

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ markers =
1919
unit: mark test as a unit test (does not require network access)
2020
functional: mark test as a functional test (does not require network access)
2121
integ: mark a test as an integration test (requires network access)
22+
hypothesis: mark a test as using hypothesis (will run many times for each pytest call)
2223
slow: mark a test as being known to take a long time to complete (order 5s < t < 60s)
2324
veryslow: mark a test as being known to take a very long time to complete (order t > 60s)
2425
nope: mark a test as being so slow that it should only be very infrequently (order t > 30m)

test/functional/test_f_formatting_attribute_serialization.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ def _serialize_deserialize_cycle(attribute):
7373

7474

7575
@pytest.mark.slow
76+
@pytest.mark.hypothesis
7677
@SLOW_SETTINGS
7778
@hypothesis.given(ddb_attribute_values)
7879
def test_serialize_deserialize_attribute_slow(attribute):
7980
_serialize_deserialize_cycle(attribute)
8081

8182

8283
@pytest.mark.veryslow
84+
@pytest.mark.hypothesis
8385
@VERY_SLOW_SETTINGS
8486
@hypothesis.given(ddb_attribute_values)
8587
def test_serialize_deserialize_attribute_vslow(attribute):
@@ -93,13 +95,15 @@ def _ddb_dict_ddb_transform_cycle(item):
9395

9496

9597
@pytest.mark.slow
98+
@pytest.mark.hypothesis
9699
@SLOW_SETTINGS
97100
@hypothesis.given(ddb_items)
98101
def test_dict_to_ddb_and_back_slow(item):
99102
_ddb_dict_ddb_transform_cycle(item)
100103

101104

102105
@pytest.mark.veryslow
106+
@pytest.mark.hypothesis
103107
@VERY_SLOW_SETTINGS
104108
@hypothesis.given(ddb_items)
105109
def test_dict_to_ddb_and_back_vslow(item):

test/functional/test_f_formatting_material_description_serialization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,15 @@ def _serialize_deserialize_cycle(material_description):
7777

7878

7979
@pytest.mark.slow
80+
@pytest.mark.hypothesis
8081
@SLOW_SETTINGS
8182
@hypothesis.given(material_descriptions)
8283
def test_serialize_deserialize_material_description_slow(material_description):
8384
_serialize_deserialize_cycle(material_description)
8485

8586

8687
@pytest.mark.veryslow
88+
@pytest.mark.hypothesis
8789
@VERY_SLOW_SETTINGS
8890
@hypothesis.given(material_descriptions)
8991
def test_serialize_deserialize_material_description_vslow(material_description):

0 commit comments

Comments
 (0)