Ejemplo n.º 1
0
    def test_save_github_repo_data(self):
        user = User()
        username = "******"
        user.create_user(username)

        project = Project()
        project.user_id = user.id
        project.save()

        user.save_github_repo_data(project)

        project_user = User.objects(project=project).first()
        self.assertEqual(user, project_user)
Ejemplo n.º 2
0
 def test_create_user(self):
     user = User()
     username = "******"
     user.create_user(username)
     user2 = User.objects(github_user=username).first()
     self.assertEqual(user, user2)