def test_write_webapp_url(): with fake_creds(): write_webapp_url("http://fake-webapp-url.ai/") from jovian.utils.credentials import WEBAPP_URL_KEY assert read_cred(WEBAPP_URL_KEY) == "http://fake-webapp-url.ai/"
def test_read_webapp_url(): with fake_creds(): write_webapp_url("http://fake-webapp-url.ai/") assert read_webapp_url() == "http://fake-webapp-url.ai/"
def test_read_webapp_url(): with fake_creds('.jovian-write-api-url', 'credentials.json'): write_webapp_url("http://fake-webapp-url.ai/") assert read_webapp_url() == "http://fake-webapp-url.ai/"