Skip to content

Commit

Permalink
Merge pull request #27 from uc-cdis/feat/test_data_simulator
Browse files Browse the repository at this point in the history
Feat/test data simulator
  • Loading branch information
giangbui authored Nov 12, 2018
2 parents c789ea3 + 9b0ae2f commit 2493453
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
requests>=2.18.0<3.0.0
rstr==2.2.6
-e git+https://[email protected]/uc-cdis/cdislogging.git@master#egg=cdislogging
-e git+https://[email protected]/NCI-GDC/cdisutils.git@8a8e599fdab5ade9bd8c586132d974a102e5d72d#egg=cdisutils
-e git+https://[email protected]/NCI-GDC/psqlgraph.git@7b5de7d56aa3159a9526940eb273579ddbf084ca#egg=psqlgraph
-e git+https://[email protected]/uc-cdis/data-simulator.git@c0bfbe7bdc2c3c15c0778b1be0254a76fd025d3f#egg=datasimulator
-e git+https://[email protected]/uc-cdis/[email protected]#egg=gdcdatamodel
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ pip install -r dev-requirements.txt
# always use this version of dictionaryutils...
pip uninstall -y dictionaryutils
python setup.py install --force
nosetests -v
nosetests -s -v
python bin/dump_schema.py
set +e
9 changes: 9 additions & 0 deletions tests/test_simulate_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from datasimulator.graph import Graph
from dictionaryutils import dictionary


def test():
graph = Graph(dictionary, "DEV", "test")
graph.generate_nodes_from_dictionary()
graph.construct_graph_edges()
assert graph.graph_validation()

0 comments on commit 2493453

Please sign in to comment.