first release v0.1
This commit is contained in:
.gitignore
.idea
LICENSEREADME.mddocs
requirements.txtsrc
tests
0
tests/test_database_connector/__init__.py
Normal file
0
tests/test_database_connector/__init__.py
Normal file
24
tests/test_database_connector/test_database_connector.py
Normal file
24
tests/test_database_connector/test_database_connector.py
Normal file
@ -0,0 +1,24 @@
|
||||
# lassen wir weg
|
||||
import unittest
|
||||
from src.database_connector.database_connector import Neo4jConnection
|
||||
|
||||
|
||||
class TestNeo4jConnection(unittest.TestCase):
|
||||
def test_something(self):
|
||||
self.assertEqual(True, False) # add assertion here
|
||||
|
||||
def test_success(self):
|
||||
# arrange
|
||||
uri = "bolt://localhost:7687"
|
||||
username = "testuser"
|
||||
password = "wrongpw"
|
||||
|
||||
# act
|
||||
obj = Neo4jConnection(uri, username, password)
|
||||
|
||||
# assert
|
||||
# self.assertEqual(, ) # testen ob exception rauskommt
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Reference in New Issue
Block a user