Add support for roles, endpoints, compute, etc. and update integration tests

This commit is contained in:
2024-01-23 08:30:17 -05:00
parent b2ba21c57e
commit 9e87b4e068
6 changed files with 376 additions and 5 deletions
+4
View File
@@ -1,3 +1,7 @@
import pytest
@pytest.fixture
def neon():
from neon_client import NeonAPI
+7 -3
View File
@@ -1,11 +1,15 @@
import pytest
import neon_client
@pytest.mark.vcr
def test_me(neon):
me = neon.me()
assert me
assert me["email"] == "me@kennethreitz.org"
@pytest.mark.vcr
@pytest.mark.vcr
def test_get_projects(neon):
projects = neon.get_projects()
assert projects
projects = neon.projects()
assert "projects" in projects