I'm new with Django, I'm new with Pycharm. My problem is as follows:
When I add a new test, I want to right click on it and run it from context menu to go fast but it doesn't work as the appname is not correct. Let me explain :
here is the structure to my test folder.
MyProjectName(basically the root) –> myAppName –>tests (the test folder)
Let's imagine i have a "mytest.py" containing a "class MyClassTest(Testcase)" and a "my_function_test(self)"
if i create a specific configuration myself, it will work when the target is set as follows:
the problem is that I don't want to waste time creating configuration manually for every test function so I want to use the context menu run/debug test but it doesn't work. Indeed, when I want to use the context menu, it tries to run
tests.MyClassTest.my_function_test. And I get the message "ImproperlyConfigured: App with label tests could not be found".
Basically, it acts like tests (which is just the test folder) is the appName. This is for a huge project already in live production and where I have no control to change folder or appnames. I was just wondering if something could be done to change the "tests" in "myAppName" somewhere.
Thanks in advance for any help you might give!