Skip to content

Commit f20a043

Browse files
committed
Test creating a project too to fix CI issues
1 parent f87a010 commit f20a043

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

tests/test_api.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,11 +1702,14 @@ def test_follow_unfollow(self):
17021702
return
17031703

17041704
with self.gen_entity(
1705+
"Project",
1706+
name="Project unit tests {rnd}",
1707+
) as project, self.gen_entity(
17051708
"HumanUser",
1706-
projects=[self.project],
1709+
projects=[project],
17071710
) as human_user, self.gen_entity(
17081711
"Shot",
1709-
project=self.project,
1712+
project=project,
17101713
) as shot:
17111714
result = self.sg.follow(human_user, shot)
17121715
assert(result['followed'])
@@ -1721,11 +1724,14 @@ def test_followers(self):
17211724
return
17221725

17231726
with self.gen_entity(
1727+
"Project",
1728+
name="Project unit tests {rnd}",
1729+
) as project, self.gen_entity(
17241730
"HumanUser",
1725-
projects=[self.project],
1731+
projects=[project],
17261732
) as human_user, self.gen_entity(
17271733
"Shot",
1728-
project=self.project,
1734+
project=project,
17291735
) as shot:
17301736
result = self.sg.follow(human_user, shot)
17311737
assert(result['followed'])
@@ -1743,14 +1749,17 @@ def test_following(self):
17431749
return
17441750

17451751
with self.gen_entity(
1752+
"Project",
1753+
name="Project unit tests {rnd}",
1754+
) as project, self.gen_entity(
17461755
"HumanUser",
1747-
projects=[self.project],
1756+
projects=[project],
17481757
) as human_user, self.gen_entity(
17491758
"Shot",
1750-
project=self.project,
1759+
project=project,
17511760
) as shot, self.gen_entity(
17521761
"Task",
1753-
project=self.project,
1762+
project=project,
17541763
) as task:
17551764
result = self.sg.follow(human_user, shot)
17561765
assert(result['followed'])

0 commit comments

Comments
 (0)