Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pony
tshistory_supervision
Commits
c016496959f9
Commit
bca0611c
authored
Sep 04, 2018
by
Aurélien Campéas
Browse files
really use transactions
parent
91daae37d765
Changes
2
Hide whitespace changes
Inline
Side-by-side
conftest.py
View file @
c0164969
...
...
@@ -18,10 +18,8 @@ def engine(request):
uri
=
'postgresql://localhost:{}/postgres'
.
format
(
port
)
e
=
create_engine
(
uri
)
meta
=
MetaData
()
with
e
.
connect
()
as
cn
:
reset
(
cn
)
with
e
.
connect
()
as
cn
:
init
(
cn
,
meta
)
reset
(
e
)
init
(
e
,
meta
)
yield
e
...
...
test/test_supervision.py
View file @
c0164969
...
...
@@ -51,7 +51,7 @@ def test_long_name(engine, tsh):
name
=
'gas.lng.country.trinidad_and_tobago.net_imports.daily'
with
engine
.
connect
()
as
cn
:
with
engine
.
begin
()
as
cn
:
tsh
.
insert
(
cn
,
serie
,
name
,
'celeste'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment