feldroy / feldroy/django-crash-course
Error trying to run tests: ModuleNotFoundError: No module named 'django_coverage_plugin'
- 主要语言
- Shell
- 星标
- 142
- 派生
- 30
- PR 合并指标
- 30 天内没有已合并 PR
描述
## Location within the Book
* Book order number: 12003
* Book build date (Is the date on page 1): 2020-09-16
* Book format (PDF, Epub or Mobi): PDF
* Chapter or Appendix: Introducing Tests
* Section: 25
* Subsection: 25.2
* What operating system are you using:
- [ ] Linux (Ubuntu 20.04)
- [ ] Linux (Ubuntu 18.04)
- [ ] Linux (Other)
- [ ] MacOS Catalina
- [ ] MacOS Mojave
- [ ] MacOS Big Sur
- [ ] Windows 10 Pro, Version 2004 or higher
- [ ] Windows 10 Pro, Version 1909 or lower
- [ x] Windows 10 Home, Version 2004 or higher
- [ ] Windows 10 Home, Version 1909 or lower
Hint: Page numbers change all the time. The best way to report an issue is by chapter, section, and subsection numbers.
## Description
> Hi, I run this command **(everycheese) D:\projects\everycheese>coverage run -m pytest**
and get the following errors:
Traceback (most recent call last):
File "D:\miniconda3\envs\everycheese\Scripts\coverage-script.py", line 10, in
sys.exit(main())
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\cmdline.py", line 871, in main
status = CoverageScript().command_line(argv)
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\cmdline.py", line 588, in command_line
return self.do_run(options, args)
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\cmdline.py", line 743, in do_run
self.coverage.start()
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\control.py", line 532, in start
self._init()
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\control.py", line 275, in _init
self._plugins = Plugins.load_plugins(self.config.plugins, self.config, self._debug)
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\plugin_support.py", line 41, in load_plugins
__import__(module)
ModuleNotFoundError: No module named 'django_coverage_plugin'
```
If code-related, enter it within these backticks. Otherwise, delete this segment.
```
## Possible Solutions
I tried to install coverage, **>conda install coverage**, but this did not fix the problem.
## Your full name so we can provide accurate credit within the book
Richard Childers
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。