0
0
PyTesttesting~10 mins

PyTest installation (pip install pytest) - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install pytest using pip.

PyTest
pip [1] pytest
Drag options to blanks, or click blank then click option'
Aremove
Bupdate
Cinstall
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pip update pytest' which is not the correct command to install.
Using 'pip remove pytest' which deletes packages instead of installing.
Using 'pip list pytest' which lists installed packages but does not install.
2fill in blank
medium

Complete the command to check the pytest version after installation.

PyTest
pytest [1]
Drag options to blanks, or click blank then click option'
A--list
B--help
C--install
D--version
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--help' which shows help but not version.
Using '--install' which is not a valid pytest option.
Using '--list' which is not a valid pytest option.
3fill in blank
hard

Fix the error in the command to install pytest for the current user.

PyTest
pip [1] --user pytest
Drag options to blanks, or click blank then click option'
Auninstall
Binstall
Cupgrade
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pip uninstall --user pytest' which removes packages.
Using 'pip upgrade --user pytest' which is for updating packages.
Using 'pip list --user pytest' which lists packages but does not install.
4fill in blank
hard

Fill both blanks to write a command that upgrades pytest to the latest version.

PyTest
pip [1] --[2] pytest
Drag options to blanks, or click blank then click option'
Ainstall
Bupgrade
Cuser
Dversion
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pip upgrade --upgrade pytest' which is invalid as 'upgrade' is not a pip subcommand.
Using '--user' instead of '--upgrade'.
Using '--version' which only shows version info.
5fill in blank
hard

Fill both blanks to write a command that installs pytest and shows the installed version after.

PyTest
pip [1] pytest && pytest [2]
Drag options to blanks, or click blank then click option'
Ainstall
B--version
C--help
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--help' instead of '--version' to check version.
Using 'list' which lists installed packages but does not check version.
Omitting 'install' which means pytest is not installed.