11import json
22import time
3+ import os
34
45import pytest
56import requests
@@ -124,6 +125,8 @@ def test_extend_reservations(project):
124125 project .extend_reservations ("InvalidQueueType" )
125126
126127
128+ @pytest .mark .skipif (condition = os .environ ['LABELBOX_TEST_ENVIRON' ] == "onprem" ,
129+ reason = "new mutation does not work for onprem" )
127130def test_attach_instructions (client , project ):
128131 with pytest .raises (ValueError ) as execinfo :
129132 project .upsert_instructions ('tests/integration/media/sample_pdf.pdf' )
@@ -147,6 +150,8 @@ def test_attach_instructions(client, project):
147150 exc_info .value )
148151
149152
153+ @pytest .mark .skipif (condition = os .environ ['LABELBOX_TEST_ENVIRON' ] == "onprem" ,
154+ reason = "new mutation does not work for onprem" )
150155def test_html_instructions (configured_project ):
151156 html_file_path = '/tmp/instructions.html'
152157 sample_html_str = "<html></html>"
@@ -161,6 +166,8 @@ def test_html_instructions(configured_project):
161166 assert requests .get (instructions ).text == sample_html_str
162167
163168
169+ @pytest .mark .skipif (condition = os .environ ['LABELBOX_TEST_ENVIRON' ] == "onprem" ,
170+ reason = "new mutation does not work for onprem" )
164171def test_same_ontology_after_instructions (
165172 configured_project_with_complex_ontology ):
166173 project , _ = configured_project_with_complex_ontology
0 commit comments