From ed91efc425eaa1fb60329b6fc6bd4239b695d3c9 Mon Sep 17 00:00:00 2001 From: "Jose D. Gomez R" <1josegomezr@gmail.com> Date: Thu, 19 Oct 2023 22:15:02 +0200 Subject: [PATCH] Add self argument to python examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tina Müller (tinita) --- docs/WritingTests.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/WritingTests.asciidoc b/docs/WritingTests.asciidoc index e3d86bcf023..72cd7291337 100644 --- a/docs/WritingTests.asciidoc +++ b/docs/WritingTests.asciidoc @@ -354,7 +354,7 @@ implementing the interface described above. -------------------------------------------------------------- from testapi import * -def run(): +def run(self): assert_screen('openqa-logged-in') assert_and_click('openqa-search') type_string('shutdown.pm') @@ -373,11 +373,11 @@ def run(): def switch_to_root_console(): send_key('ctrl-alt-f3') -def post_fail_hook(): +def post_fail_hook(self): switch_to_root_console() assert_script_run('openqa-cli api experimental/search q=shutdown.pm') -def test_flags(): +def test_flags(self): return {'fatal': 1} --------------------------------------------------------------