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 634f9b6 commit 5155552Copy full SHA for 5155552
test/unit/test_projects.py
@@ -54,12 +54,15 @@ def test_create_delete() -> None:
54
"""test_create_delete"""
55
proj = projects.Project.create(endpoint=tutil.SQ, key=tutil.TEMP_KEY, name="temp")
56
assert proj.key == tutil.TEMP_KEY
57
+ assert proj.main_branch_name() == "main"
58
if tutil.SQ.edition() != c.CE:
59
assert proj.main_branch().name == "main"
60
proj.rename_main_branch("foobar")
61
assert proj.main_branch().name == "foobar"
62
else:
- assert proj.main_branch_name() == "main"
63
+ with pytest.raises(exceptions.UnsupportedOperation):
64
+ proj.main_branch()
65
+
66
assert proj.delete()
67
with pytest.raises(exceptions.ObjectNotFound):
68
proj.refresh()
0 commit comments