When you execute pytest on the pycharm terminal, an error is reported and the file cannot be found
because the path opened by terminal is not necessarily the directory of your current file, To switch to the directory where the file is located
Click
in the upper right corner of pycharm to copy the path in the working directory
enter the working directory path just copied from CD in terminal
run pytest again
Read More:
- [Solved] Mac Terminal error: command not found: telnet
- Error BC: command not found when git bash runs shell script
- “Launch” appears when eclipse C + + CDT runs the program failed.binary not found”
- ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none)
- Solutions to errors reported by running pytest.ini configuration file
- The Linux terminal appears bash: setup.bash : no such file or directory, and. Bashrc file
- Clion compiles and runs a single C / cpp file
- Several ways for Ubuntu to open command line terminal window
- Mac realizes file interaction (upload and download) between terminal and server
- When Jekyll runs, it will prompt an error. Cannot load such file — webrick (LoadError)
- Pychart remote debugging display picture, tkagg error report troubleshooting
- Bash modifies the file names in the specified folder through MAC terminal (batch modification)
- [Android] button uses the custom drawable file to set the background, and runs “error inflating class button”
- The bash file written by windows runs in Linux system error
- TFTP: server says: file not found solution
- [How to Fix] error: file ‘/boot/grub/i386-pc/normal.mod’ not found
- Java uses ZipFile to decompress the zip file and runs normally under Windows. Linux reports an error
- error: File not found by glob???
- Local workspace file (‘angular.json’) could not be found.
- Solve fatal error: ‘FFI. H’ file not found