Esempio n. 1
0
def test_profile_questions_copy(vcr_live_sleep):
    # This could be better...
    with mock.patch('okcupyd.profile_copy.time.sleep', vcr_live_sleep):
        user = User()
        # Find a user that has answered fewer than 50 questions.
        # This is going to issue an insane number of requests if we don't do this
        profile = get_profile_with_max_questions(user, max_questions=50)
        user.copy(profile).questions()

        for question in profile.questions():
            assert question.their_answer == question.my_answer
Esempio n. 2
0
def test_profile_questions_copy(vcr_live_sleep):
    # This could be better...
    with mock.patch('okcupyd.profile_copy.time.sleep', vcr_live_sleep):
        user = User()
        # Find a user that has answered fewer than 50 questions.
        # This is going to issue an insane number of requests if we don't do this
        profile = get_profile_with_max_questions(
            user, max_questions=50
        )
        user.copy(profile).questions()

        for question in profile.questions():
            assert question.their_answer == question.my_answer
Esempio n. 3
0
def test_profile_copy_smoke_test(vcr_live_sleep):
    with mock.patch('okcupyd.profile_copy.time.sleep', vcr_live_sleep):
        user = User()
        profile = get_profile_with_max_questions(user, 50)
        user.copy(profile).all()
Esempio n. 4
0
def test_profile_copy_smoke_test(vcr_live_sleep):
    with mock.patch('okcupyd.profile_copy.time.sleep', vcr_live_sleep):
        user = User()
        profile = get_profile_with_max_questions(user, 50)
        user.copy(profile).all()