Ejemplo n.º 1
0
 def setUp(self):
     git_repo = make_test_git()
     super(TestGitBackend, self).setUp()
     self.eric = User.objects.get(username='******')
     self.project = Project.objects.create(
         name="Test Project",
         repo_type="git",
         #Our top-level checkout
         repo=git_repo
     )
     self.project.users.add(self.eric)
Ejemplo n.º 2
0
 def setUp(self):
     repo = make_test_git()
     self.repo = repo
     super(TestBuilding, self).setUp()
     self.eric = User.objects.get(username='******')
     self.project = Project.objects.create(
         name="Test Project",
         repo_type="git",
         #Our top-level checkout
         repo=repo,
     )
     self.project.users.add(self.eric)
Ejemplo n.º 3
0
 def setUp(self):
     repo = make_test_git()
     self.repo = repo
     super(TestBuilding, self).setUp()
     self.eric = User.objects.get(username='******')
     self.project = Project.objects.create(
         name="Test Project",
         repo_type="git",
         #Our top-level checkout
         repo=repo,
     )
     self.project.users.add(self.eric)
Ejemplo n.º 4
0
 def setUp(self):
     git_repo = make_test_git()
     super(TestGitBackend, self).setUp()
     self.eric = User(username="******")
     self.eric.set_password("test")
     self.eric.save()
     self.project = Project.objects.create(
         name="Test Project",
         repo_type="git",
         # Our top-level checkout
         repo=git_repo,
     )
     self.project.users.add(self.eric)
Ejemplo n.º 5
0
 def setUp(self):
     repo = make_test_git()
     self.repo = repo
     super().setUp()
     self.eric = User(username='******')
     self.eric.set_password('test')
     self.eric.save()
     self.project = Project.objects.create(
         name='Test Project',
         repo_type='git',
         # Our top-level checkout
         repo=repo,
     )
     self.project.users.add(self.eric)
Ejemplo n.º 6
0
 def setUp(self):
     git_repo = make_test_git()
     super(TestGitBackend, self).setUp()
     self.eric = User(username='******')
     self.eric.set_password('test')
     self.eric.save()
     self.project = Project.objects.create(
         name="Test Project",
         repo_type="git",
         #Our top-level checkout
         repo=git_repo)
     self.project.users.add(self.eric)
     self.dummy_conf = Mock()
     # These are the default values from v1
     self.dummy_conf.submodules.include = ALL
     self.dummy_conf.submodules.exclude = []
Ejemplo n.º 7
0
 def setUp(self):
     git_repo = make_test_git()
     super().setUp()
     self.eric = User(username='******')
     self.eric.set_password('test')
     self.eric.save()
     self.project = Project.objects.create(
         name='Test Project',
         repo_type='git',
         #Our top-level checkout
         repo=git_repo,
     )
     self.project.users.add(self.eric)
     self.dummy_conf = Mock()
     # These are the default values from v1
     self.dummy_conf.submodules.include = ALL
     self.dummy_conf.submodules.exclude = []
Ejemplo n.º 8
0
 def setUp(self):
     repo = make_test_git()
     self.repo = repo
     super().setUp()
     self.eric = User(username='******')
     self.eric.set_password('test')
     self.eric.save()
     self.project = Project.objects.create(
         name='Test Project',
         repo_type='git',
         # Our top-level checkout
         repo=repo,
     )
     self.project.users.add(self.eric)
     get(
         Feature,
         feature_id=Feature.SYNC_VERSIONS_USING_A_TASK,
         projects=[self.project],
     )