@@ -1702,11 +1702,14 @@ def test_follow_unfollow(self):
1702
1702
return
1703
1703
1704
1704
with self .gen_entity (
1705
+ "Project" ,
1706
+ name = "Project unit tests {rnd}" ,
1707
+ ) as project , self .gen_entity (
1705
1708
"HumanUser" ,
1706
- projects = [self . project ],
1709
+ projects = [project ],
1707
1710
) as human_user , self .gen_entity (
1708
1711
"Shot" ,
1709
- project = self . project ,
1712
+ project = project ,
1710
1713
) as shot :
1711
1714
result = self .sg .follow (human_user , shot )
1712
1715
assert (result ['followed' ])
@@ -1721,11 +1724,14 @@ def test_followers(self):
1721
1724
return
1722
1725
1723
1726
with self .gen_entity (
1727
+ "Project" ,
1728
+ name = "Project unit tests {rnd}" ,
1729
+ ) as project , self .gen_entity (
1724
1730
"HumanUser" ,
1725
- projects = [self . project ],
1731
+ projects = [project ],
1726
1732
) as human_user , self .gen_entity (
1727
1733
"Shot" ,
1728
- project = self . project ,
1734
+ project = project ,
1729
1735
) as shot :
1730
1736
result = self .sg .follow (human_user , shot )
1731
1737
assert (result ['followed' ])
@@ -1743,14 +1749,17 @@ def test_following(self):
1743
1749
return
1744
1750
1745
1751
with self .gen_entity (
1752
+ "Project" ,
1753
+ name = "Project unit tests {rnd}" ,
1754
+ ) as project , self .gen_entity (
1746
1755
"HumanUser" ,
1747
- projects = [self . project ],
1756
+ projects = [project ],
1748
1757
) as human_user , self .gen_entity (
1749
1758
"Shot" ,
1750
- project = self . project ,
1759
+ project = project ,
1751
1760
) as shot , self .gen_entity (
1752
1761
"Task" ,
1753
- project = self . project ,
1762
+ project = project ,
1754
1763
) as task :
1755
1764
result = self .sg .follow (human_user , shot )
1756
1765
assert (result ['followed' ])
0 commit comments