diff --git a/__pycache__/database.cpython-37.pyc b/__pycache__/database.cpython-37.pyc index b8f4262a..648f5973 100644 Binary files a/__pycache__/database.cpython-37.pyc and b/__pycache__/database.cpython-37.pyc differ diff --git a/__pycache__/db_config.cpython-37.pyc b/__pycache__/db_config.cpython-37.pyc index d4ab056d..01e14cf7 100644 Binary files a/__pycache__/db_config.cpython-37.pyc and b/__pycache__/db_config.cpython-37.pyc differ diff --git a/database.py b/database.py index 863ac996..27a3bc5a 100644 --- a/database.py +++ b/database.py @@ -32,7 +32,7 @@ def select_table(self,query): def create_table(self, query, database_url): pass - # @abstractmethod + #@abstractmethod def insert_rows(self,query): pass diff --git a/tests/__pycache__/__init__.cpython-37.pyc b/tests/__pycache__/__init__.cpython-37.pyc index 88938533..baaa803d 100644 Binary files a/tests/__pycache__/__init__.cpython-37.pyc and b/tests/__pycache__/__init__.cpython-37.pyc differ diff --git a/tests/integration/__pycache__/__init__.cpython-37.pyc b/tests/integration/__pycache__/__init__.cpython-37.pyc index 92bf3eb2..17ec753e 100644 Binary files a/tests/integration/__pycache__/__init__.cpython-37.pyc and b/tests/integration/__pycache__/__init__.cpython-37.pyc differ diff --git a/tests/integration/__pycache__/test_postgres.cpython-37-pytest-5.0.1.pyc b/tests/integration/__pycache__/test_postgres.cpython-37-pytest-5.0.1.pyc index a453fd72..1f5a463f 100644 Binary files a/tests/integration/__pycache__/test_postgres.cpython-37-pytest-5.0.1.pyc and b/tests/integration/__pycache__/test_postgres.cpython-37-pytest-5.0.1.pyc differ diff --git a/tests/integration/test_postgres.py b/tests/integration/test_postgres.py index f25e9bc7..12e25cff 100644 --- a/tests/integration/test_postgres.py +++ b/tests/integration/test_postgres.py @@ -63,8 +63,15 @@ def test_drop_database(self): self.assertNotEqual( self.postgres.drop_database(self.database_name), f"failed to drop database {self.database_name}") - + def test_insert_rows(self): + self.assertNotEqual(self.postgres.insert_rows( + self.query, self.table_name, TEST_DATABASE_URL), f"Unable to insert rows") + + def test_show_table(self): + self.assertNotEqual(self.postgres.show_table(TEST_DATABASE_URL), + 'Failed to show tables') + def tearDown(self): self.postgres.drop_table(self.table_name, TEST_DATABASE_URL) self.postgres.drop_database(self.database_name)