Skip to content

Commit 084622e

Browse files
authored
Merge pull request #475 from radish-bdd/cleanup/profile
Drop --profile option
2 parents ee1ea0b + f7e51bc commit 084622e

File tree

5 files changed

+1
-37
lines changed

5 files changed

+1
-37
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1010

1111
### Changes
1212
- Drop Python 3.6 and Python 3.7
13+
- Drop the `--profile` option, please use `--user-data`
1314

1415
## [v0.17.1]
1516

docs/commandline.rst

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -121,28 +121,6 @@ the hooks defined in the terrain files.
121121
To see example code please consult :ref:`terrain <tutorial#terrain_and_hooks>`.
122122

123123

124-
Run - Profile
125-
-------------
126-
127-
Radish allows you to pass custom data to a Terrain hook code or to the Step implementations
128-
using the ``-p`` or ``--profile`` command line option. This can be used to
129-
customize your test runs as needed.
130-
131-
The value specified to the ``-p`` / ``--profile`` command line option is made
132-
available in ``world.config.profile``. Please see :ref:`tutorial#world` for
133-
for an example.
134-
135-
A common usage of ``profile`` s setting it to some environment value such as
136-
``stage`` or ``production``.
137-
138-
.. code:: bash
139-
140-
radish SomeFeature.feature -p stage
141-
radish SomeFeature.feature --profile stage
142-
143-
Note: ``-p`` / ``--profile`` is being deprecated and will be removed in a future version of Radish. Please use ``-u`` / ``--user-data`` instead. See :ref:`Arbitrary User Data <commandline#user_data>` for details.
144-
145-
146124
Run - Dry run
147125
-------------
148126

@@ -557,7 +535,6 @@ Use the ``--help`` or ``-h`` option to show the following help screen:
557535
[--debug-steps]
558536
[-t | --with-traceback]
559537
[-m=<marker> | --marker=<marker>]
560-
[-p=<profile> | --profile=<profile>]
561538
[-d | --dry-run]
562539
[-s=<scenarios> | --scenarios=<scenarios>]
563540
[--shuffle]
@@ -595,7 +572,6 @@ Use the ``--help`` or ``-h`` option to show the following help screen:
595572
--debug-steps debugs each step
596573
-t --with-traceback show the Exception traceback when a step fails
597574
-m=<marker> --marker=<marker> specify the marker for this run [default: time.time()]
598-
-p=<profile> --profile=<profile> specify the profile which can be used in the step/hook implementation
599575
-b=<basedir> --basedir=<basedir>... set base dir from where the step.py and terrain.py will be loaded. [default: $PWD/radish]
600576
You can specify -b|--basedir multiple times. All files will be imported.
601577
-d --dry-run make dry run for the given feature files

docs/tutorial.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,9 +902,6 @@ For example ``--bdd-xml`` argument can be accessed using
902902
# print basedir
903903
print(world.config.basedir)
904904
905-
# print profile
906-
print(world.config.profile)
907-
908905
909906
Sometimes it's useful to have specific variables and functions available during
910907
a whole test run. These variables and functions can be added to the ``world``

radish/main.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def main(args=None):
104104
[--debug-steps]
105105
[-t | --with-traceback]
106106
[-m=<marker> | --marker=<marker>]
107-
[-p=<profile> | --profile=<profile>]
108107
[-d | --dry-run]
109108
[-s=<scenarios> | --scenarios=<scenarios>]
110109
[--shuffle]
@@ -125,7 +124,6 @@ def main(args=None):
125124
--debug-steps debugs each step
126125
-t --with-traceback show the Exception traceback when a step fails
127126
-m=<marker> --marker=<marker> specify the marker for this run [default: time.time()]
128-
-p=<profile> --profile=<profile> specify the profile which can be used in the step/hook implementation
129127
-b=<basedir> --basedir=<basedir>... set base dir from where the step.py and terrain.py will be loaded. [default: $PWD/radish]
130128
You can specify -b|--basedir multiple times or split multiple paths with a colon (:) similar to $PATH. All files will be imported.
131129
-d --dry-run make dry run for the given feature files
@@ -168,13 +166,6 @@ def main(args=None):
168166

169167
core = Core()
170168

171-
if world.config.profile:
172-
msg = (
173-
"Command line argument -p/--profile will be removed in a future version. Please "
174-
"use -u/--user-data instead."
175-
)
176-
warnings.warn(msg, DeprecationWarning, stacklevel=1)
177-
178169
feature_files = []
179170
for given_feature in world.config.features:
180171
if not os.path.exists(given_feature):

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def mock_world_config():
5858
"--marker": "time.time()",
5959
"--no-ansi": False,
6060
"--no-line-jump": False,
61-
"--profile": None,
6261
"--scenarios": None,
6362
"--shuffle": False,
6463
"--syslog": False,

0 commit comments

Comments
 (0)