Skip to content

Commit

Permalink
Merge pull request #1 from PMEAL/improve_tests
Browse files Browse the repository at this point in the history
improve tests
  • Loading branch information
Tom Tranter authored Jan 12, 2018
2 parents e648388 + 8c99eda commit fe45723
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import porespy as ps
import scipy as sp
import git


class PackageTest():
def setup_class(self):
pass

def test_version_number_and_git_tag_agree(self):
repo = git.Repo(search_parent_directories=True)
tag = repo.git.describe("--tags")
tag = tag.strip('vV') # Remove 'v' or 'V' from tag if present
tag = tag.split('-')[0] # Remove hash from tag number if present
assert ps.__version__ == tag

0 comments on commit fe45723

Please sign in to comment.