Skip to content

Commit d951ab7

Browse files
committed
fix args
1 parent 377817b commit d951ab7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

dlairflow/test/test_postgresql.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ def mock_connection(connection):
2727

2828
monkeypatch.setattr(BaseHook, "get_connection", mock_connection)
2929

30-
test_operator = pg_dump_schema("login,password,host,schema")
30+
test_operator = pg_dump_schema("login,password,host,schema", "dump_schema")
31+
32+
print(dir(test_operator))
33+
34+
35+
def test_pg_dump_schema_alt_dir(monkeypatch):
36+
"""Test pg_dump task with alternate directory.
37+
"""
38+
def mock_connection(connection):
39+
conn = MockConnection(connection)
40+
return conn
41+
42+
monkeypatch.setattr(BaseHook, "get_connection", mock_connection)
43+
44+
test_operator = pg_dump_schema("login,password,host,schema", "dump_schema", "dump_dir")
3145

3246
print(dir(test_operator))

0 commit comments

Comments
 (0)