The commands for running the tests in the development section are not working #6014

Closed
opened 2025-12-29 19:35:43 +01:00 by adam · 1 comment
Owner

Originally created by @991jo on GitHub (Jan 28, 2022).

Originally assigned to: @991jo on GitHub.

Change Type

Correction

Area

Administration/development

Proposed Changes

The commands for running the tests as shown are not working because when running the command in the root of the repository the auto detection of tests does find 0 tests.

$ tree -L 2
.
├── base_requirements.txt
├── CHANGELOG.md
├── contrib
 ...
├── CONTRIBUTING.md
├── docs
...
├── include
├── LICENSE.txt
├── mkdocs.yml
├── netbox
│   ├── circuits
│   ├── dcim
│   ├── extras
│   ├── generate_secret_key.py
│   ├── ipam
│   ├── manage.py
│   ├── media
│   ├── netbox
│   ├── project-static
│   ├── reports
│   ├── scripts
│   ├── templates
│   ├── tenancy
│   ├── users
│   ├── utilities
│   ├── virtualization
│   └── wireless
├── NOTICE
├── pyvenv.cfg
├── README.md
├── requirements.txt
├── scripts
...
└── upgrade.sh

$ python netbox/manage.py test
System check identified no issues (0 silenced).

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

One either has to run python netbox/manage.py test netbox or cd netbox; python manage.py test to get working test.
This also has to be fixed in the other 2 cases where the test command is used in the testing section.

Originally created by @991jo on GitHub (Jan 28, 2022). Originally assigned to: @991jo on GitHub. ### Change Type Correction ### Area Administration/development ### Proposed Changes The commands for running the tests as shown are not working because when running the command in the root of the repository the auto detection of tests does find 0 tests. ``` $ tree -L 2 . ├── base_requirements.txt ├── CHANGELOG.md ├── contrib ... ├── CONTRIBUTING.md ├── docs ... ├── include ├── LICENSE.txt ├── mkdocs.yml ├── netbox │   ├── circuits │   ├── dcim │   ├── extras │   ├── generate_secret_key.py │   ├── ipam │   ├── manage.py │   ├── media │   ├── netbox │   ├── project-static │   ├── reports │   ├── scripts │   ├── templates │   ├── tenancy │   ├── users │   ├── utilities │   ├── virtualization │   └── wireless ├── NOTICE ├── pyvenv.cfg ├── README.md ├── requirements.txt ├── scripts ... └── upgrade.sh $ python netbox/manage.py test System check identified no issues (0 silenced). ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK ``` One either has to run `python netbox/manage.py test netbox` or `cd netbox; python manage.py test` to get working test. This also has to be fixed in the other 2 cases where the test command is used in the testing section.
adam added the status: acceptedtype: documentation labels 2025-12-29 19:35:43 +01:00
adam closed this issue 2025-12-29 19:35:43 +01:00
Author
Owner

@991jo commented on GitHub (Jan 28, 2022):

I am currently preparing a PR for this.

@991jo commented on GitHub (Jan 28, 2022): I am currently preparing a PR for this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6014