@@ -73,7 +73,9 @@ def test_constructor_board_url_data(tmp_cache, http_example_board_path, df_csv):
7373
7474@pytest .mark .xfail
7575@pytest .mark .skip_on_github
76- def test_constructor_board_url_cache (tmp_cache , http_example_board_path , df_csv ):
76+ def test_constructor_board_url_cache (
77+ tmp_cache , http_example_board_path , df_csv , tmp_path
78+ ):
7779 # TODO: downloading a pin does not put files in the same directory, since
7880 # in this case we are hashing on the full url.
7981
@@ -85,12 +87,19 @@ def test_constructor_board_url_cache(tmp_cache, http_example_board_path, df_csv)
8587
8688 board .pin_read ("df_csv" )
8789
88- # cannot read or view pin versions
90+ # cannot write or view pin versions
8991
9092 with pytest .raises (NotImplementedError ):
9193 board .pin_write (df_csv )
9294 with pytest .raises (NotImplementedError ):
9395 board .pin_versions ("df_csv" )
96+ with pytest .raises (NotImplementedError ):
97+ board .pin_version_delete (name = "df_csv" , version = "20220214T163718Z" )
98+ with pytest .raises (NotImplementedError ):
99+ df = pd .DataFrame ({"x" : [1 , 2 , 3 ]})
100+ path = tmp_path / "data.csv"
101+ df .to_csv (path , index = False )
102+ board .pin_upload (path , "cool_pin" )
94103
95104 # check cache ----
96105 http_dirs = list (tmp_cache .glob ("http_*" ))
0 commit comments