We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5abe5c4 commit 2e13198Copy full SHA for 2e13198
test/unit/test_branches.py
@@ -165,5 +165,9 @@ def test_audit():
165
166
def test_exists():
167
"""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)
+ if tutil.SQ.edition() == c.CE:
+ 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