Tests for the configuration getters.
parent
fb43dccea6
commit
b8c78bef76
|
@ -10,4 +10,8 @@ Feature: The Replay API client
|
||||||
Given the Replay client
|
Given the Replay client
|
||||||
And a Log created
|
And a Log created
|
||||||
When the log method is called
|
When the log method is called
|
||||||
Then this new log must be registered in the Replay Data Base
|
Then this new log must be registered in the Replay Data Base
|
||||||
|
|
||||||
|
|
||||||
|
# Since this is a remote repository, it is impossible to test the config getters methods.
|
||||||
|
# They have to be runned inside a local repository wich contains Replay, so, unfortunatelly, they will not be tested, at least not for now.
|
|
@ -31,4 +31,10 @@ def step_impl(context):
|
||||||
|
|
||||||
@then(u'this new log must be registered in the Replay Data Base')
|
@then(u'this new log must be registered in the Replay Data Base')
|
||||||
def step_impl(context):
|
def step_impl(context):
|
||||||
assert (context.client.sql("select * from logs")["data"][-1]["dtlogend"] == context.dt_log_end and context.log_return == "ok")
|
assert (context.client.sql("select * from logs")["data"][-1]["dtlogend"] == context.dt_log_end and context.log_return == "ok")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ============================= CONFIGURATION GETTERS =============================
|
||||||
|
# Since this is a remote repository, it is impossible to test the config getters methods.
|
||||||
|
# They have to be runned inside a local repository wich contains Replay, so, unfortunatelly, they will not be tested, at least not for now.
|
Loading…
Reference in New Issue