[PR #8489] [MERGED] Fixes #8477: The commands for running the tests in the development se… #13360

Closed
opened 2025-12-29 22:26:58 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8489
Author: @991jo
Created: 1/28/2022
Status: Merged
Merged: 1/28/2022
Merged by: @jeremystretch

Base: developHead: fix-unittest-docs


📝 Commits (1)

  • 5d29c59 Fixes #8477: The commands for running the tests in the development section are not working

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 docs/development/getting-started.md (+4 -4)

📄 Description

…ction are not working

Fixes: #8477

Running python3 netbox/manage.py test netbox does work, but working with submodules does not work, because netbox is not a proper package. It will fail with an error saying that it can't load the submodules. Therefore running python3 manage.py test in the netbox directory is the way to go.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/8489 **Author:** [@991jo](https://github.com/991jo) **Created:** 1/28/2022 **Status:** ✅ Merged **Merged:** 1/28/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `fix-unittest-docs` --- ### 📝 Commits (1) - [`5d29c59`](https://github.com/netbox-community/netbox/commit/5d29c5958b5214d180991fbb18b2ba051a679703) Fixes #8477: The commands for running the tests in the development section are not working ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/getting-started.md` (+4 -4) </details> ### 📄 Description …ction are not working <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #8477 <!-- Please include a summary of the proposed changes below. --> Running `python3 netbox/manage.py test netbox` does work, but working with submodules does not work, because `netbox` is not a proper package. It will fail with an error saying that it can't load the submodules. Therefore running `python3 manage.py test` in the `netbox` directory is the way to go. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:26:58 +01:00
adam closed this issue 2025-12-29 22:26:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13360