Skip to content

Commit

Permalink
Test creating a project too to fix CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-lang committed Sep 15, 2023
1 parent f87a010 commit f20a043
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1702,11 +1702,14 @@ def test_follow_unfollow(self):
return

with self.gen_entity(
"Project",
name="Project unit tests {rnd}",
) as project, self.gen_entity(
"HumanUser",
projects=[self.project],
projects=[project],
) as human_user, self.gen_entity(
"Shot",
project=self.project,
project=project,
) as shot:
result = self.sg.follow(human_user, shot)
assert(result['followed'])
Expand All @@ -1721,11 +1724,14 @@ def test_followers(self):
return

with self.gen_entity(
"Project",
name="Project unit tests {rnd}",
) as project, self.gen_entity(
"HumanUser",
projects=[self.project],
projects=[project],
) as human_user, self.gen_entity(
"Shot",
project=self.project,
project=project,
) as shot:
result = self.sg.follow(human_user, shot)
assert(result['followed'])
Expand All @@ -1743,14 +1749,17 @@ def test_following(self):
return

with self.gen_entity(
"Project",
name="Project unit tests {rnd}",
) as project, self.gen_entity(
"HumanUser",
projects=[self.project],
projects=[project],
) as human_user, self.gen_entity(
"Shot",
project=self.project,
project=project,
) as shot, self.gen_entity(
"Task",
project=self.project,
project=project,
) as task:
result = self.sg.follow(human_user, shot)
assert(result['followed'])
Expand Down

0 comments on commit f20a043

Please sign in to comment.