Skip to content

Commit 50bd825

Browse files
committed
update to tests for on-prem where the mutation for upsert instructions has not yet been updated
1 parent 5d5a9f7 commit 50bd825

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration/test_project.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import time
3+
import os
34

45
import pytest
56
import 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")
127130
def 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")
150155
def 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")
164171
def test_same_ontology_after_instructions(
165172
configured_project_with_complex_ontology):
166173
project, _ = configured_project_with_complex_ontology

0 commit comments

Comments
 (0)