When you execute just the module like that, Python will know to go to the _main_.py file, That the current working directory must be in src directory. In the terminal, we would need to execute this command to start the game. If it’s working and if we can proceed further. So far, we’ve been playing with P圜harm and configuration. Preferences -> Tools -> Python Integrated Tools. ![]() Now we can configure pytest as our default test runner in P圜harm. Installing collected packages: pluggy, py, attrs, atomicwrites, more-itertools, six, pytest Requirement already satisfied: setuptools in. Using terminal you should see something like this: Install pytest with command pip install pytest. Just open the consoleīy pressing terminal at the left - bottom. If you prefer console, you can install any Python packages using pip command. To install new packages click add "+" sign and searchįor pytest package. ![]() Packages (so far just setuptools and pip). Right under selected Python interpreter is a list of installed ![]() Just stay on the Python Interpreter preference pageĪnd install packages from there. In order to use it for running our tests. Since we are using a clean virtual environment, we also need to install the pytest framework This will also create a virtual environment. Interpreters at all, we’ll have to add one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |