Skip to content

Commit 2e13198

Browse files
committed
Adjust test_exists() for CB
1 parent 5abe5c4 commit 2e13198

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/unit/test_branches.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,9 @@ def test_audit():
165165

166166
def test_exists():
167167
"""test_exists"""
168-
assert branches.exists(tutil.SQ, branch_name="develop", project_key=tutil.LIVE_PROJECT)
169-
assert not branches.exists(tutil.SQ, branch_name="foobar", project_key=tutil.LIVE_PROJECT)
168+
if tutil.SQ.edition() == c.CE:
169+
with pytest.raises(exceptions.UnsupportedOperation):
170+
branches.exists(tutil.SQ, branch_name="develop", project_key=tutil.LIVE_PROJECT)
171+
else:
172+
assert branches.exists(tutil.SQ, branch_name="develop", project_key=tutil.LIVE_PROJECT)
173+
assert not branches.exists(tutil.SQ, branch_name="foobar", project_key=tutil.LIVE_PROJECT)

0 commit comments

Comments
 (0)