diff options
author | Irina Truong <i.chernyavska@gmail.com> | 2018-06-17 14:34:20 -0700 |
---|---|---|
committer | Irina Truong <i.chernyavska@gmail.com> | 2018-06-17 14:34:20 -0700 |
commit | a26b8b92a2a984f573ba0e0e209fe1930ce4ca62 (patch) | |
tree | 88e24ba56cddb721a49ac6c2b166364712236a49 /tests | |
parent | 4b06769002342d082568e4d0889b37f0d58b71ae (diff) |
Pep8.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pgexecute.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_pgexecute.py b/tests/test_pgexecute.py index 3336d37e..da055fb6 100644 --- a/tests/test_pgexecute.py +++ b/tests/test_pgexecute.py @@ -361,6 +361,7 @@ def test_on_error_stop(executor, exception_formatter): # result = list(executor.run(sql)) # assert result[0][0] == u'NOTICE: 有人更改\n' + @dbtest def test_nonexistent_function_definition(executor): with pytest.raises(RuntimeError): @@ -379,6 +380,7 @@ def test_function_definition(executor): ''') result = executor.function_definition('the_number_three') + @dbtest def test_view_definition(executor): run(executor, 'create table tbl1 (a text, b numeric)') @@ -390,10 +392,10 @@ def test_view_definition(executor): result = executor.view_definition('mvw1') assert 'MATERIALIZED VIEW' in result + @dbtest def test_nonexistent_view_definition(executor): with pytest.raises(RuntimeError): result = executor.view_definition('there_is_no_such_view') with pytest.raises(RuntimeError): result = executor.view_definition('mvw1') - |