def test_arg_add(): monkeypatch.setattr(FitbarkApi, "hass_get_token", self.hass_get_token) monkeypatch.setattr(FitbarkApi, "hass_add_url", self.hass_add_url) monkeypatch.setattr(FitbarkApi, "hass_get_redirect_urls", self.hass_get_redirect_urls) main(["-a"])
def test_arg_dog_pic(): monkeypatch.setattr(FitbarkApi, "get_user_related_dogs", self.get_user_related_dogs) monkeypatch.setattr(FitbarkApi, "get_dog_picture", self.get_dog_picture) main(["--dog-pic"])
def test_arg_dog(): monkeypatch.setattr(FitbarkApi, "get_user_related_dogs", self.get_user_related_dogs) monkeypatch.setattr(FitbarkApi, "get_dog", self.get_dog) main(["--dog"])
def test_arg_user_pic(): monkeypatch.setattr(FitbarkApi, "get_user_profile", self.get_user_profile) monkeypatch.setattr(FitbarkApi, "get_user_picture", self.get_user_picture) main(["--user-pic"])
def test_arg_user_slug(): monkeypatch.setattr(FitbarkApi, "get_user_profile", self.get_user_profile) main(["--user-slug"])
def test_empty(): main([])