Beispiel #1
0
def test_invalid_api_url(info):
    """API URL for invalid slug"""
    with pytest.raises(ValueError):
        update.build_api_url('fniephausalfred-workflow')
    def test_invalid_api_url(self):
        """Update: API URL for invalid slug"""

        with self.assertRaises(ValueError):
            update.build_api_url('fniephausalfred-workflow')
Beispiel #3
0
def test_valid_api_url(info):
    """API URL for valid slug"""
    url = update.build_api_url(TEST_REPO_SLUG)
    assert url == RELEASES_URL
Beispiel #4
0
def test_invalid_api_url(info):
    """API URL for invalid slug"""
    with pytest.raises(ValueError):
        update.build_api_url('fniephausalfred-workflow')
    def test_valid_api_url(self):
        """Update: API URL for valid slug"""

        url = update.build_api_url(TEST_REPO_SLUG)
        self.assertEquals(url, RELEASES_URL)
Beispiel #6
0
def test_valid_api_url(info):
    """API URL for valid slug"""
    url = update.build_api_url(TEST_REPO_SLUG)
    assert url == RELEASES_URL
Beispiel #7
0
    def test_invalid_api_url(self):
        """Update: API URL for invalid slug"""

        with self.assertRaises(ValueError):
            update.build_api_url('fniephausalfred-workflow')
Beispiel #8
0
    def test_valid_api_url(self):
        """Update: API URL for valid slug"""

        url = update.build_api_url(TEST_REPO_SLUG)
        self.assertEquals(url, RELEASES_URL)
Beispiel #9
0
def test_valid_api_url(infopl, alfred4):
    """API URL for valid slug"""
    url = update.build_api_url(TEST_REPO)
    assert url == RELEASES_URL
Beispiel #10
0
def test_valid_api_url(infopl, alfred4):
    """API URL for valid slug"""
    url = update.build_api_url(TEST_REPO)
    assert url == RELEASES_URL