Skip to content

Commit

Permalink
Add self argument to python examples
Browse files Browse the repository at this point in the history
Co-authored-by: Tina Müller (tinita) <[email protected]>
  • Loading branch information
josegomezr and perlpunk authored Oct 19, 2023
1 parent 224b709 commit ed91efc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/WritingTests.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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}
--------------------------------------------------------------

Expand Down

0 comments on commit ed91efc

Please sign in to comment.