Skip to content

Commit

Permalink
Merge branch 'main' into connectingGraphPlot
Browse files Browse the repository at this point in the history
  • Loading branch information
johncthomas authored Sep 12, 2023
2 parents f789b36 + 4542892 commit 6473810
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
3 changes: 1 addition & 2 deletions data_setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from sqlalchemy import Column, create_engine, ForeignKey, insert, Integer, MetaData, Table
engine = create_engine("sqlite+pysqlite:///:memory:", echo=True)

def setup_data(engine=engine):
def setup_data(engine):
metadata_object = MetaData()
table_a = Table(
"table_a",
Expand Down
18 changes: 18 additions & 0 deletions integration_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from unittest import TestCase

from data_setup import setup_data

from graph import get_graph

from sqlalchemy import create_engine, text

from plot_graph import plot

engine = create_engine("sqlite+pysqlite:///:memory:", echo=True)

class DataSetupTests(TestCase):
def test_integration(self):
setup_data(engine)
graph = get_graph( engine, 'table_a', 1 )
plot(graph)

4 changes: 2 additions & 2 deletions test_data_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ def test_has_some_data(self):


class PlotlyFunctionsTests(TestCase):
def basic_test(self):
basic_test()
def test_basic(self):
basic_test()

0 comments on commit 6473810

Please sign in to comment.