Ejemplo n.º 1
0
def test_get_by_company(mocked_method):
    time.Gds(upwork.Client).get_by_company("company", {"a": "b"})
    mocked_method.assert_called_with("/timereports/v1/companies/company", {"a": "b"})
Ejemplo n.º 2
0
def test_get_by_freelancer_full(mocked_method):
    time.Gds(upwork.Client).get_by_freelancer_full("freelancer", {"a": "b"})
    mocked_method.assert_called_with("/timereports/v1/providers/freelancer", {"a": "b"})
Ejemplo n.º 3
0
def test_get_by_team_limited(mocked_method):
    time.Gds(upwork.Client).get_by_team_limited("company", "team", {"a": "b"})
    mocked_method.assert_called_with(
        "/timereports/v1/companies/company/teams/team/hours", {"a": "b"}
    )