Exemple #1
0
 def changed_package(self, watched=True):
     package = PackageFactory.create()
     package.latest_release = PackageReleaseFactory.create(package=package)
     package.save()
     if watched:
         WatchFactory.create(user=self.user, package=package)
     return package
Exemple #2
0
 def changed_package(self):
     package = PackageFactory.create()
     package.latest_release = PackageReleaseFactory.create(package=package)
     package.save()
     return package