From b8c78bef763739ab15bafff6748cb161e3fe38e5 Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Guedes Date: Tue, 18 Jan 2022 08:29:19 -0300 Subject: [PATCH] Tests for the configuration getters. --- api/replay/features/replay.feature | 6 +++++- api/replay/features/steps/steps.py | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/api/replay/features/replay.feature b/api/replay/features/replay.feature index 4de8370..21c4bd9 100644 --- a/api/replay/features/replay.feature +++ b/api/replay/features/replay.feature @@ -10,4 +10,8 @@ Feature: The Replay API client Given the Replay client And a Log created When the log method is called - Then this new log must be registered in the Replay Data Base \ No newline at end of file + 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. \ No newline at end of file diff --git a/api/replay/features/steps/steps.py b/api/replay/features/steps/steps.py index bf35cec..aa596b8 100644 --- a/api/replay/features/steps/steps.py +++ b/api/replay/features/steps/steps.py @@ -31,4 +31,10 @@ def step_impl(context): @then(u'this new log must be registered in the Replay Data Base') def step_impl(context): - assert (context.client.sql("select * from logs")["data"][-1]["dtlogend"] == context.dt_log_end and context.log_return == "ok") \ No newline at end of file + 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. \ No newline at end of file