Skip to content

Commit b35baf2

Browse files
committed
Refactoring custom settings
1 parent 3a26df6 commit b35baf2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/custom_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
# (For 2-factor authentication using a time-based one-time password algorithm)
4949
# (See https://github.com/pyotp/pyotp and https://pypi.org/project/pyotp/ )
5050
# (Also works with Authy and other compatible apps.)
51+
# Usage: "self.get_google_auth_password()" (output based on timestamp)
52+
# Usage with override: "self.get_google_auth_password(totp_key=TOTP_KEY)"
5153
TOTP_KEY = "base32secretABCD"
5254

5355
# MySQL DB Credentials

seleniumbase/config/settings.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
"""
22
You'll probably want to customize this to your own environment and needs.
33
4-
If you used ``python setup.py install`` instead of ``python setup.py develop``,
5-
you may need to rerun ``python setup.py install`` in order for your changes
6-
to take effect (unless you switch to using ``develop``).
4+
For changes to take effect immediately, use Python's Develop Mode.
5+
Develop Mode Install: "pip install -e ." (from the top-level directory)
76
"""
87

98

@@ -117,6 +116,8 @@
117116
# (For 2-factor authentication using a time-based one-time password algorithm)
118117
# (See https://github.com/pyotp/pyotp and https://pypi.org/project/pyotp/ )
119118
# (Also works with Authy and other compatible apps.)
119+
# Usage: "self.get_google_auth_password()" (output based on timestamp)
120+
# Usage with override: "self.get_google_auth_password(totp_key=TOTP_KEY)"
120121
TOTP_KEY = "base32secretABCD"
121122

122123

0 commit comments

Comments
 (0)