Skip to content

Commit

Permalink
cred
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwutk committed Feb 25, 2024
1 parent c431f34 commit d7c350c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions tests/engine/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

def test_reset():
d = Database(psycopg2.connect(
dbname="mobilitydb",
user="docker",
dbname="postgres",
user="postgres",
host="localhost",
port=os.environ["AP_PORT_RESET"],
password="docker",
password="postgres",
))

with open('./data/nuscenes/processed/cameras.pkl', 'rb') as f:
Expand All @@ -43,11 +43,11 @@ def test_reset():

def test_execute_update_and_query():
d = Database(psycopg2.connect(
dbname="mobilitydb",
user="docker",
dbname="postgres",
user="postgres",
host="localhost",
port=os.environ["AP_PORT_SQL"],
password="docker",
password="postgres",
))

d.update("create table if not exists t1 (c1 text, c2 int)")
Expand Down
12 changes: 6 additions & 6 deletions tests/engine/utils/test_ingest_road.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
])
def test_simple_ops(table: str, count: int):
d1 = Database(psycopg2.connect(
dbname="mobilitydb",
user="docker",
dbname="postgres",
user="postgres",
host="localhost",
port=os.environ["AP_PORT_ROAD_1"],
password="docker",
password="postgres",
))
d1.reset()
ingest_road(d1, "./data/scenic/road-network/boston-seaport")
Expand All @@ -36,11 +36,11 @@ def test_simple_ops(table: str, count: int):

def test_incomplete_road_network():
d2 = Database(psycopg2.connect(
dbname="mobilitydb",
user="docker",
dbname="postgres",
user="postgres",
host="localhost",
port=os.environ["AP_PORT_ROAD_2"],
password="docker",
password="postgres",
))
ingest_road(d2, "./data/viva/road-network")

Expand Down

0 comments on commit d7c350c

Please sign in to comment.