Browse Source

Test --spec with GitHub’s new OpenAPI description

Jakub Roztocil 3 months ago
parent
commit
18501c7d16
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tests/test_cli.py

+ 1 - 2
tests/test_cli.py

@@ -185,9 +185,8 @@ class TestCli(TempAppDirTestCase):
         self.assertEqual(lv2_names, set(['v1']))
         self.assertEqual(lv3_names, set(['users', 'orgs']))
 
-    @unittest.skip('the linked spec file no longer exist')
     def test_spec_from_http(self):
-        spec_url = 'https://api.apis.guru/v2/specs/github.com/v3/swagger.json'
+        spec_url = 'https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json'
         result, context = run_and_exit(['https://api.github.com', '--spec',
                                         spec_url])
         self.assertEqual(result.exit_code, 0)