mirror of
https://github.com/kennethreitz/neon-api-python.git
synced 2026-06-05 14:50:16 +00:00
Add Neon API package and related files
This commit is contained in:
+3
-3
@@ -4,15 +4,15 @@
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
||||
|
||||
|
||||
import neon_client
|
||||
import neon_api
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
||||
|
||||
project = "neon-client"
|
||||
project = "neon-api-python"
|
||||
copyright = "2024 Neon, Inc"
|
||||
author = "Neon, Inc"
|
||||
release = neon_client.__version__
|
||||
release = neon_api.__version__
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
||||
|
||||
@@ -12,9 +12,9 @@ from shutil import rmtree
|
||||
from setuptools import find_packages, setup, Command
|
||||
|
||||
# Package meta-data.
|
||||
NAME = "neon-client"
|
||||
NAME = "neon-api"
|
||||
DESCRIPTION = "An API Client for the Neon API."
|
||||
URL = "https://github.com/kennethreitz/neon-client"
|
||||
URL = "https://github.com/kennethreitz/neon-api-python"
|
||||
EMAIL = "me@kennethreitz.org"
|
||||
AUTHOR = "Kenneth Reitz"
|
||||
REQUIRES_PYTHON = ">=3.10.0"
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import pytest
|
||||
|
||||
@pytest.fixture
|
||||
def neon():
|
||||
from neon_client import NeonAPI
|
||||
from neon_api import NeonAPI
|
||||
|
||||
return NeonAPI.from_environ()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from random import randint
|
||||
|
||||
import pytest
|
||||
import neon_client
|
||||
import neon_api
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
@@ -13,7 +13,7 @@ def vcr_config():
|
||||
def test_me(neon):
|
||||
me = neon.me()
|
||||
|
||||
assert isinstance(me, neon_client.schema.CurrentUserInfoResponse)
|
||||
assert isinstance(me, neon_api.schema.CurrentUserInfoResponse)
|
||||
assert me.email
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user