From 85216c78a8c1fb9bd0babc62f6d2e991ce0666a2 Mon Sep 17 00:00:00 2001 From: Giang Bui Date: Sun, 11 Nov 2018 19:47:06 -0600 Subject: [PATCH 1/2] feat(data_simulator): add test data simulator --- dev-requirements.txt | 1 + tests/test_simulate_data.py | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/test_simulate_data.py diff --git a/dev-requirements.txt b/dev-requirements.txt index cfa1a11..da201cf 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,3 +1,4 @@ -e git+https://git@github.com/NCI-GDC/cdisutils.git@8a8e599fdab5ade9bd8c586132d974a102e5d72d#egg=cdisutils -e git+https://git@github.com/NCI-GDC/psqlgraph.git@7b5de7d56aa3159a9526940eb273579ddbf084ca#egg=psqlgraph +-e git+https://git@github.com/uc-cdis/data-simulator.git@079c83e04e8df56c88533d2e1c47eec476d3bd79#egg=datasimulator -e git+https://git@github.com/uc-cdis/gdcdatamodel.git@1.3.0#egg=gdcdatamodel diff --git a/tests/test_simulate_data.py b/tests/test_simulate_data.py new file mode 100644 index 0000000..2a71827 --- /dev/null +++ b/tests/test_simulate_data.py @@ -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() From 9b0ae2f6adba31ebfb3ebc4e89dbb3914a39f1d8 Mon Sep 17 00:00:00 2001 From: Giang Bui Date: Sun, 11 Nov 2018 19:59:52 -0600 Subject: [PATCH 2/2] feat(dependencies): add cdislogging --- dev-requirements.txt | 5 ++++- run_tests.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index da201cf..bcded16 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,4 +1,7 @@ +requests>=2.18.0<3.0.0 +rstr==2.2.6 +-e git+https://git@github.com/uc-cdis/cdislogging.git@master#egg=cdislogging -e git+https://git@github.com/NCI-GDC/cdisutils.git@8a8e599fdab5ade9bd8c586132d974a102e5d72d#egg=cdisutils -e git+https://git@github.com/NCI-GDC/psqlgraph.git@7b5de7d56aa3159a9526940eb273579ddbf084ca#egg=psqlgraph --e git+https://git@github.com/uc-cdis/data-simulator.git@079c83e04e8df56c88533d2e1c47eec476d3bd79#egg=datasimulator +-e git+https://git@github.com/uc-cdis/data-simulator.git@c0bfbe7bdc2c3c15c0778b1be0254a76fd025d3f#egg=datasimulator -e git+https://git@github.com/uc-cdis/gdcdatamodel.git@1.3.0#egg=gdcdatamodel diff --git a/run_tests.sh b/run_tests.sh index e4866e2..9b3cd40 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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