i can't run test inside pycharm

i can't run test inside pycharm.

i write some test against my program and if i launch it on a console, it works.

but in pycharm, i can't.

when i run it , the output is there

G:\Python27\python.exe "G:\Program Files\JetBrains\PyCharm 108.1348\helpers\pycharm\django_test_manage.py" test gsb
Testing started at 13:07 ...
Traceback (most recent call last):
  File "G:\Program Files\JetBrains\PyCharm 108.1348\helpers\pycharm\django_test_manage.py", line 17, in <module>
    execute_manager(django_settings)
  File "G:\Python27\lib\site-packages\django\core\management\__init__.py", line 442, in execute_manager
    utility.execute()
  File "G:\Python27\lib\site-packages\django\core\management\__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "G:\Python27\lib\site-packages\django\core\management\commands\test.py", line 34, in run_from_argv
Importing Django settings module settings
    super(Command, self).run_from_argv(argv)
  File "G:\Python27\lib\site-packages\django\core\management\base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "G:\Python27\lib\site-packages\django\core\management\base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "G:\Python27\lib\site-packages\django\core\management\commands\test.py", line 53, in handle
    test_runner = TestRunner(**options)
TypeError: run_tests() takes at least 1 argument (2 given)

Process finished with exit code 1

how i could use the test inside ?

thanks in advance.

0

Please sign in to leave a comment.