Пример #1
0
    def test_create_profile_missing_fields(self):
        user = self.register_user()
        payload = {
            "photoFsRef": "https://google.com",
            "coverPhotoFsRef": "https://google.com",
            "tagline": "Some Tagline",
            "user_id": user.id
        }

        profile = UserProfile(**payload)
        profile.save()

        self.assertEqual(1, profile.id)
Пример #2
0
    def test_create_profile(self):
        user = self.register_user()
        payload = {
            "photoFsRef": "https://google.com",
            "coverPhotoFsRef": "https://google.com",
            "tagline": "Some Tagline",
            "short_bio": "Short Bio",
            "country": "PH",
            "user_id": user.id
        }

        profile = UserProfile(**payload)
        profile.save()

        self.assertEqual(1, profile.id)