@@ -22,7 +22,6 @@ def test_valid_list_of_dicts():
2222 assert all (isinstance (x , dict ) for x in result )
2323
2424
25- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
2625def test_valid_dataframe ():
2726 df = pd .DataFrame (
2827 [
@@ -48,7 +47,6 @@ def test_valid_list_with_extra_keys():
4847 assert all ("Resource" in row for row in result )
4948
5049
51- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
5250def test_valid_dataframe_with_extra_keys ():
5351 df = pd .DataFrame (
5452 [
@@ -83,7 +81,6 @@ def test_missing_required_key_in_list():
8381 assert result is input_data
8482
8583
86- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
8784def test_missing_required_key_in_dataframe ():
8885 df = pd .DataFrame (
8986 [
@@ -104,15 +101,13 @@ def test_input_is_not_list_or_dataframe():
104101 validate_gantt ("Not a list or DataFrame" )
105102
106103
107- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
108104def test_dataframe_with_no_rows ():
109105 df = pd .DataFrame (columns = ["Task" , "Start" , "Finish" ])
110106 result = validate_gantt (df )
111107 assert isinstance (result , list )
112108 assert result == []
113109
114110
115- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
116111def test_dataframe_with_extra_rows_and_missing_keys ():
117112 df = pd .DataFrame (
118113 [
@@ -131,7 +126,6 @@ def test_list_with_dict_missing_all_keys():
131126 assert result is input_data
132127
133128
134- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
135129def test_dataframe_with_only_required_keys ():
136130 df = pd .DataFrame (
137131 [
@@ -160,7 +154,6 @@ def test_large_list_of_dicts():
160154 assert len (result ) == 1000
161155
162156
163- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
164157def test_large_dataframe ():
165158 df = pd .DataFrame (
166159 [
@@ -178,7 +171,6 @@ def test_large_dataframe():
178171 assert set (result [0 ].keys ()) == set (df .columns )
179172
180173
181- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
182174def test_large_dataframe_missing_key ():
183175 df = pd .DataFrame (
184176 [
@@ -241,7 +233,6 @@ def test_determinism_multiple_calls_list():
241233 assert out2 is input_data
242234
243235
244- @pytest .mark .skipif (pd is None , reason = "pandas is not available" )
245236def test_dataframe_column_order_and_index ():
246237 df = pd .DataFrame (
247238 [
0 commit comments