0

I have a Django project in Dev Env. I can run the api with 'python manage.py runserver'

I can run the tests with 'python manage.py rest api.tests'

But only one at a time. When I run tests the api is not running. How can I run tests when api is running? I am using Pycharm it does now allow to run same instance twice. Isn't this is a common scenario?

Blue Clouds
  • 7,295
  • 4
  • 71
  • 112
  • It's not very clear what you mean. You should just be able to run them as two separate processes - you'll need to provide more details about how exactly you're trying to run them and what fails when you run them both at the same time. – solarissmoke Apr 20 '22 at 08:47
  • How do we run them as two separate processes? Two IDE? I use Py Charm which only allow one instance – Blue Clouds Apr 20 '22 at 09:09
  • 2
    [running two python script in parallel in pycharm](https://stackoverflow.com/questions/51297102/running-two-python-script-in-parallel-in-pycharm) – solarissmoke Apr 20 '22 at 09:10
  • 1
    I think you can use python runserver and tests parallelly in two terminals. Did you try that. – Siva Sankar Apr 20 '22 at 09:31

0 Answers0