Commit 1b23bc9c authored by Derek Homeier's avatar Derek Homeier
Browse files

Rename module and fix test setup and dependencies

parent 72e3649d
Pipeline #2437 failed with stage
in 3 minutes and 48 seconds
# Compiled files
*.py[cod]
*.a
*.o
*.so
*.pyd
*.dll
__pycache__
# Ignore .c files by default to avoid including generated code. If you want to
# add a non-generated .c extension, put that into the src/ subdirectory of a
# package or else use `git add -f filename.c`.
*.c
!*/src/*.c
# Other generated files
MANIFEST
# Sphinx
_build
_generated
docs/api
docs/generated
# Packages/installer info
*.egg
*.egg-info
dist
build
eggs
.eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
distribute-*.tar.gz
.venv
venv
# we are not currently using pipenv directly, but people who
# install astropy with pipenv will have these files generated
Pipfile
Pipfile.lock
# pyinstaller files
.pyinstaller/*_tests/
.pyinstaller/*_tests
.pyinstaller/*_tests.spec
# Other
.cache
.tox
.*.swp
.*.swo
*~
\#*.*\#
.\#*.*
.project
.pydevproject
.settings
.coverage
cover
htmlcov
.hypothesis
.github_cache
# Mac OSX
.DS_Store
# PyCharm
.idea
# Pytest
v
.pytest_cache
# VSCode
.vscode
.tmp
pip-wheel-metadata
from rename_me_to_your_awesome_name.sample_module import add
from unittest import TestCase
class TestSampleModule(TestCase):
def test_add(self):
self.assertEqual(add(1,1),2)
if __name__ == "__main__":
with open(os.devnull, "w") as log:
unittest.main()
# add your requirements here e.g.
# astropy >= 1.0.0
sunpy
sunpy >= 3.0.0
beautifulsoup4 >= 4.8.0
drms>=0.6.1
python-dateutil >= 2.8.0
tqdm >= 4.32.1
zeep >= 3.4.0
......@@ -8,7 +8,7 @@ from sunpy.net.attr import AttrAnd, AttrOr, AttrMeta, AttrWalker, DataAttr
from sunpy.net.base_client import BaseClient, QueryResponseTable
from sunpy.util.exceptions import SunpyUserWarning
# from sunpy.net.attrs import Instrument, Level, Physobs, Provider, Time, Wavelength
import attrs as sattrs
import sdc.attrs as sattrs
import urllib.parse
import urllib.request
from urllib.error import HTTPError, URLError
......@@ -323,7 +323,7 @@ class KISClient(BaseClient):
@classmethod
def _attrs_module(cls):
return 'sdc', 'attrs'
return 'sdc', 'sdc.attrs'
@classmethod
def register_values(cls):
......
......@@ -6,7 +6,7 @@ import pytest
import astropy.units as u
from sunpy.net import attrs as a
import client as kisclient
from sdc.client import KISClient
_BASE_URL = "http://dockertest:8083/sdc/"
......@@ -20,7 +20,7 @@ except(HTTPError, URLError):
@pytest.fixture
def client():
return kisclient.KISClient()
return KISClient()
def test_search(client):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment