Skip to content

Commit

Permalink
Merge pull request #1 from amoodie/develop
Browse files Browse the repository at this point in the history
import tests relative
  • Loading branch information
elbeejay authored Mar 31, 2020
2 parents 9e5c418 + d67ace4 commit abcaadb
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache

# Translations
*.mo
Expand All @@ -60,3 +61,6 @@ target/

#Ipython Notebook
.ipynb_checkpoints

# SublimeText docs
*.sublime-*
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ jobs:
python: "3.8"
install:
- pip install -r requirements.txt
- pip install pytest
- pip install pytest-cov
- pip install coveralls
- pip install pytest pytest-cov coveralls
script: pytest --cov=pyDeltaRCM_WMT/
after_success:
- coveralls
4 changes: 3 additions & 1 deletion tests/test_bmi_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import pytest

import os
import sys, os
import numpy as np
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))

from pyDeltaRCM import BmiDelta

# need to create a simple case of pydeltarcm object to test these functions
Expand Down
6 changes: 4 additions & 2 deletions tests/test_deltaRCM_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import pytest

import os
import sys, os
import numpy as np
import pyDeltaRCM
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))

# import pyDeltaRCM
from pyDeltaRCM import BmiDelta

# need to create a simple case of pydeltarcm object to test these functions
Expand Down
4 changes: 3 additions & 1 deletion tests/test_deltaRCM_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import pytest

import os
import sys, os
import numpy as np
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))

from pyDeltaRCM import BmiDelta
from pyDeltaRCM import Tools

Expand Down
4 changes: 3 additions & 1 deletion tests/test_init_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import pytest

import os
import sys, os
import numpy as np
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))

from pyDeltaRCM import BmiDelta
from pyDeltaRCM import init_tools

Expand Down
4 changes: 3 additions & 1 deletion tests/test_sed_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import pytest

import os
import sys, os
import numpy as np
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))

from pyDeltaRCM import BmiDelta
from pyDeltaRCM import sed_tools

Expand Down
4 changes: 3 additions & 1 deletion tests/test_shared_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import pytest

import os
import sys, os
import numpy as np
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))

from pyDeltaRCM import BmiDelta
from pyDeltaRCM import shared_tools

Expand Down
4 changes: 3 additions & 1 deletion tests/test_water_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import pytest

import os
import sys, os
import numpy as np
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))

from pyDeltaRCM import BmiDelta
from pyDeltaRCM import water_tools

Expand Down

0 comments on commit abcaadb

Please sign in to comment.