Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ build-backend = "setuptools.build_meta"
log_cli = true
log_cli_level = 'INFO'
testpaths = ["tests"]
pythonpath = "./src"
9 changes: 3 additions & 6 deletions tests/test_array.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
"""Pytest module."""

import unittest
import os
import sys
import numpy as np

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))
import numpy as np
from file_manager import FileManager
from hecdss import HecDss, ArrayContainer

from hecdss import ArrayContainer, HecDss


class TestArray(unittest.TestCase):
Expand Down
7 changes: 2 additions & 5 deletions tests/test_basics.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
"""Pytest module."""

import unittest
import os
import sys
from datetime import datetime

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))
from file_manager import FileManager

from hecdss import Catalog, HecDss
from datetime import datetime


class TestBasics(unittest.TestCase):
Expand Down
4 changes: 0 additions & 4 deletions tests/test_dss_type.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import unittest
import os
import sys

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))
from hecdss.dss_type import DssType


Expand Down
7 changes: 1 addition & 6 deletions tests/test_dsspath.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
"""Pytest module."""

import unittest
import os
import sys

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))

from hecdss import DssPath
from hecdss.cwms_utility import CwmsUtility
from hecdss.dss_type import DssType
from hecdss import DssPath


class TestDssPath(unittest.TestCase):
Expand Down
9 changes: 3 additions & 6 deletions tests/test_gridded_data.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
"""Pytest module."""

import unittest
import sys
import os
import numpy as np

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))
import numpy as np
from file_manager import FileManager
from hecdss.gridded_data import GriddedData

from hecdss import HecDss
from hecdss.gridded_data import GriddedData


class TestGriddedData(unittest.TestCase):
Expand Down
16 changes: 7 additions & 9 deletions tests/test_irregular_timeseries.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
"""Pytest module."""

import unittest
import sys
import os
import numpy as np


sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))
import sys
import unittest
from datetime import datetime, timedelta

import numpy as np
from file_manager import FileManager
from hecdss.irregular_timeseries import IrregularTimeSeries
from datetime import datetime, timedelta

from hecdss import HecDss
from hecdss.irregular_timeseries import IrregularTimeSeries


class TestRegularTimeSeries(unittest.TestCase):

Expand Down
11 changes: 2 additions & 9 deletions tests/test_location_info.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
"""Pytest module."""

import unittest
import sys
import os
import numpy as np

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))

from file_manager import FileManager
import copy
from hecdss.paired_data import PairedData
from hecdss.location_info import LocationInfo

from hecdss import HecDss
from hecdss.location_info import LocationInfo


# update MODIFIED_TEST_DIR to be the path the folder containing dss files
Expand Down
12 changes: 4 additions & 8 deletions tests/test_paired_data.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
"""Pytest module."""

import copy
import unittest
import sys
import os
import numpy as np

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))

import numpy as np
from file_manager import FileManager
import copy
from hecdss.paired_data import PairedData

from hecdss import HecDss
from hecdss.paired_data import PairedData


# update MODIFIED_TEST_DIR to be the path the folder containing dss files
Expand Down
11 changes: 3 additions & 8 deletions tests/test_regular_timeseries.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
"""Pytest module."""

import unittest
import sys
import os
from datetime import datetime, timedelta

import numpy as np
from file_manager import FileManager

from hecdss import HecDss

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))

from file_manager import FileManager
from hecdss.regular_timeseries import RegularTimeSeries
from datetime import datetime, timedelta


class TestRegularTimeSeries(unittest.TestCase):

Expand Down
11 changes: 3 additions & 8 deletions tests/test_text.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
"""Pytest module."""

import unittest
import sys
import os

from hecdss.record_type import RecordType

sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))

from file_manager import FileManager
from hecdss import Catalog, HecDss

from hecdss import HecDss
from hecdss.record_type import RecordType


class TestText(unittest.TestCase):
Expand Down
9 changes: 2 additions & 7 deletions tests/workshop.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@

"""Pytest module."""

import sys
import os
sys.path.append(r'src')
sys.path.append(os.path.dirname(__file__))

import copy

from file_manager import FileManager
import copy

from hecdss import HecDss


Expand Down