Skip to content

Commit 797e2df

Browse files
committed
Update comments in examples
1 parent 9a33d99 commit 797e2df

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

examples/raw_browser_launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This script can be run with pure "python". (pytest not needed)."""
1+
"""Driver() test. Runs with "python". (pytest not needed)."""
22
from seleniumbase import Driver
33
from seleniumbase import js_utils
44
from seleniumbase import page_actions

examples/raw_call.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Calling tests with "python" instead of directly using "pytest".
2-
To run, use: "python raw_call.py".
1+
"""Can run with "python" instead of using "pytest" directly.
2+
Usage: "python raw_call.py".
33
Two examples: pytest.main() and subprocess.call()."""
44
import pytest
55
import subprocess

examples/raw_driver_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This script can be run with pure "python". (pytest not needed)."""
1+
"""Can run with "python". (pytest not needed)."""
22
from seleniumbase import js_utils
33
from seleniumbase import page_actions
44
from seleniumbase import DriverContext

examples/raw_main_call.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"""Call a file with "python" instead of using "pytest" directly.
1+
"""Can use "python" instead of using "pytest".
22
Added pytest args will be included in the run.
3-
To run, use: "python raw_file_call.py"."""
3+
Example usage: "python raw_file_call.py"."""
44
from seleniumbase import BaseCase
55
BaseCase.main(__name__, __file__)
66

examples/raw_parameter_script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
with other plugins, such as ones for generating test reports,
1414
handling multithreading, and parametrized tests. Depending on your
1515
specific needs, you may need to call SeleniumBase commands without
16-
using Pytest, and this example shows you how. """
17-
16+
using Pytest, and this example shows you how.
17+
"""
1818
pure_python = False
1919
try:
2020
# Running with Pytest / (Finds test methods to run using autodiscovery)

examples/raw_sb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Context Manager Test. Can be run with pure "python". (pytest not needed)."""
1+
"""Context Manager Test. Runs with "python". (pytest not needed)."""
22
from seleniumbase import SB
33

44
with SB() as sb: # By default, browser="chrome" if not set.

examples/raw_test_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Context Manager Tests. Can be run with pure "python". (pytest not needed)"""
1+
"""Context Manager Test. Runs with "python". (pytest not needed)"""
22
from seleniumbase import SB
33

44
with SB(test=True) as sb:

0 commit comments

Comments
 (0)