Skip to content

Commit

Permalink
Update source path and add test script
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatologist committed Dec 6, 2023
1 parent c057dd9 commit 6230cf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# .coveragerc to control coverage.py
[run]
branch = True
source = pyomop
source = src.pyomop
# omit = bad_file.py

[paths]
Expand Down
2 changes: 1 addition & 1 deletion src/pyomop/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def cli(verbose, create, dbtype, host, port, user, pw, name, schema, vocab):
# initialize default engine
engine = cdm.engine
asyncio.run(cdm.init_models(metadata))
if vocab is not '':
if vocab != '':
cdm = CdmEngineFactory(dbtype, host, port, user, pw, name, schema)
_vocab = CdmVocabulary(cdm)
_vocab.create_vocab(vocab)
Expand Down
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest -s --cov --color=yes --verbose

0 comments on commit 6230cf1

Please sign in to comment.