Replace most occurrences of nose with pytest
This commit is contained in:
+11
-11
@@ -14,16 +14,16 @@ your CI config file:
|
|||||||
```yaml
|
```yaml
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- CIBW_TEST_REQUIRES=nose
|
- CIBW_TEST_REQUIRES=pytest
|
||||||
- CIBW_TEST_COMMAND="nosetests {project}/tests"
|
- CIBW_TEST_COMMAND="pytest {project}/tests"
|
||||||
```
|
```
|
||||||
|
|
||||||
> appveyor.yml ([docs](https://www.appveyor.com/docs/build-configuration/#environment-variables))
|
> appveyor.yml ([docs](https://www.appveyor.com/docs/build-configuration/#environment-variables))
|
||||||
```yaml
|
```yaml
|
||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
CIBW_TEST_REQUIRES: nose
|
CIBW_TEST_REQUIRES: pytest
|
||||||
CIBW_TEST_COMMAND: "nosetests {project}\\tests"
|
CIBW_TEST_COMMAND: "pytest {project}\\tests"
|
||||||
```
|
```
|
||||||
|
|
||||||
> .circleci/config.yml ([docs](https://circleci.com/docs/2.0/configuration-reference/#environment))
|
> .circleci/config.yml ([docs](https://circleci.com/docs/2.0/configuration-reference/#environment))
|
||||||
@@ -31,22 +31,22 @@ environment:
|
|||||||
jobs:
|
jobs:
|
||||||
job_name:
|
job_name:
|
||||||
environment:
|
environment:
|
||||||
CIBW_TEST_REQUIRES: nose
|
CIBW_TEST_REQUIRES: pytest
|
||||||
CIBW_TEST_COMMAND: "nosetests {project}/tests"
|
CIBW_TEST_COMMAND: "pytest {project}/tests"
|
||||||
```
|
```
|
||||||
|
|
||||||
> azure-pipelines.yml ([docs](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables))
|
> azure-pipelines.yml ([docs](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables))
|
||||||
```yaml
|
```yaml
|
||||||
variables:
|
variables:
|
||||||
CIBW_TEST_REQUIRES: nose
|
CIBW_TEST_REQUIRES: pytest
|
||||||
CIBW_TEST_COMMAND: "nosetests {project}/tests"
|
CIBW_TEST_COMMAND: "pytest {project}/tests"
|
||||||
```
|
```
|
||||||
|
|
||||||
> .github/workflows/*.yml ([docs](https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables)) (can be global, in job, or in step)
|
> .github/workflows/*.yml ([docs](https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables)) (can be global, in job, or in step)
|
||||||
```yaml
|
```yaml
|
||||||
env:
|
env:
|
||||||
CIBW_TEST_REQUIRES: nose
|
CIBW_TEST_REQUIRES: pytest
|
||||||
CIBW_TEST_COMMAND: "nosetests {project}/tests"
|
CIBW_TEST_COMMAND: "pytest {project}/tests"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -307,7 +307,7 @@ Platform-specific variants also available:<br/>
|
|||||||
CIBW_TEST_COMMAND: nosetests {project}/tests
|
CIBW_TEST_COMMAND: nosetests {project}/tests
|
||||||
|
|
||||||
# run the project tests using `pytest`
|
# run the project tests using `pytest`
|
||||||
CIBW_TEST_COMMAND: nosetests {project}/tests
|
CIBW_TEST_COMMAND: pytest {project}/tests
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user