How To Install python-nose-testconfig on Debian 9
Introduction
In this tutorial we learn how to install python-nose-testconfig
on Debian 9.
What is python-nose-testconfig
python-nose-testconfig is:
nose-testconfig is a plugin to the nose test framework which provides a faculty for passing test-specific (or test-run specific) configuration data to the tests being executed.
Currently configuration files in the following formats are supported:
- YAML (via python-yaml)
- INI (via ConfigParser)
- Pure Python (via Exec)
- JSON
The plugin is meant to be flexible, ergo the support of exec’ing arbitrary Python files as configuration files with no checks. The default format is assumed to be ConfigParser ini-style format.
The plugin provides a method of overriding certain parameters from the command line (assuming that the main “config” object is a dict) and can easily have additional parsers added to it.
A configuration file may not be provided. In this case, the config object is an emtpy dict. Any command line “overriding” parameters will be added to the dict.
There are three methods to install python-nose-testconfig
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-nose-testconfig Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-nose-testconfig
using apt-get
by running the following command:
sudo apt-get -y install python-nose-testconfig
Install python-nose-testconfig Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-nose-testconfig
using apt
by running the following command:
sudo apt -y install python-nose-testconfig
Install python-nose-testconfig Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-nose-testconfig
using aptitude
by running the following command:
sudo aptitude -y install python-nose-testconfig
How To Uninstall python-nose-testconfig on Debian 9
To uninstall only the python-nose-testconfig
package we can use the following command:
sudo apt-get remove python-nose-testconfig
Uninstall python-nose-testconfig And Its Dependencies
To uninstall python-nose-testconfig
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-nose-testconfig
Remove python-nose-testconfig Configurations and Data
To remove python-nose-testconfig
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-nose-testconfig
Remove python-nose-testconfig configuration, data, and all of its dependencies
We can use the following command to remove python-nose-testconfig
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-nose-testconfig
Dependencies
python-nose-testconfig have the following dependencies:
References
Summary
In this tutorial we learn how to install python-nose-testconfig
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.