Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/finish-db-models #7

Merged
merged 15 commits into from
Nov 7, 2020
Prev Previous commit
Next Next commit
Replace pygraphviz dep with pydot
  • Loading branch information
JacksonMaxfield committed Nov 6, 2020
commit e0d01e42fe4b6dee6c098bb71251a6bbbd0866ab
2 changes: 1 addition & 1 deletion cdp_backend/tests/database/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_cdp_database_model_has_no_cyclic_dependencies(tmpdir):
_construct_dot_file(tmp_save_dot_path)

# Read dot as networkx digraph
G = nx.DiGraph(nx.drawing.nx_agraph.read_dot(tmp_save_dot_path))
G = nx.DiGraph(nx.drawing.nx_pydot.read_dot(tmp_save_dot_path))

# Get cycles
cycles = list(nx.simple_cycles(G))
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"codecov>=2.1.4",
"flake8>=3.8.3",
"flake8-debugger>=3.2.1",
"graphviz>=0.14", # graphviz and pygraphviz are different
"graphviz>=0.14", # graphviz and pygraphviz are different, this is used for UML gen
"networkx>=2.5",
"pygraphviz>=1.6", # graphviz and pygraphviz are different
"pydot>=1.4", # graphviz and pydot are different, this one is used only for testing
"pytest>=5.4.3",
"pytest-cov>=2.9.0",
"pytest-raises>=0.11",
Expand Down