Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c82679

Browse files
authored
Update getting-started.rst
feat: Note to update main method Added note to pass arguments in main method when executing on IPython or Jupyter.
1 parent a28f3e6 commit 9c82679

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/getting-started.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ search functionality::
126126
self.driver.close()
127127

128128
if __name__ == "__main__":
129-
unittest.main(argv=['first-arg-is-ignored'], exit=False)
129+
unittest.main()
130130

131131

132132
You can run the above test case from a shell like this::
@@ -140,6 +140,9 @@ You can run the above test case from a shell like this::
140140

141141
The above result shows that the test has been successfully completed.
142142

143+
Note: To run the above test in IPython or Jupyter, we need to pass arguments in main method as shown below:
144+
unittest.main(argv=['first-arg-is-ignored'], exit=False)
145+
143146

144147
Walkthrough of the example
145148
~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)