File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
stac_fastapi/elasticsearch/tests/clients Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,24 @@ def test_create_collection(
3232 es_transactions .delete_collection (data ["id" ], request = MockStarletteRequest )
3333
3434
35- @pytest .mark .skip (reason = "passing but messing up the next test" )
35+ # @pytest.mark.skip(reason="passing but messing up the next test")
3636def test_create_collection_already_exists (
3737 es_transactions : TransactionsClient ,
3838 load_test_data : Callable ,
3939):
4040 data = load_test_data ("test_collection.json" )
4141 es_transactions .create_collection (data , request = MockStarletteRequest )
4242
43+ time .sleep (1 )
44+
4345 # change id to avoid elasticsearch duplicate key error
4446 data ["_id" ] = str (uuid .uuid4 ())
4547
4648 with pytest .raises (ConflictError ):
4749 es_transactions .create_collection (data , request = MockStarletteRequest )
4850
51+ es_transactions .delete_collection (data ["id" ], request = MockStarletteRequest )
52+
4953
5054def test_update_collection (
5155 es_core : CoreCrudClient ,
You can’t perform that action at this time.
0 commit comments