First time here? Check out the FAQ!

piscvau's profile - activity

2024-03-05 09:22:57 -0500 received badge Famous Question (source)
2024-01-23 07:53:28 -0500 received badge Necromancer ( source )
2024-01-23 07:53:28 -0500 received badge Self-Learner ( source )
2024-01-23 02:47:45 -0500 answered a question Using the testing tool to run Django tests

*FINAL ANSWER* In the testing tool , django tests should not be manually inserted but found automatically by running al

2024-01-18 08:40:59 -0500 answered a question Using the testing tool to run Django tests

Hello I am sorry but this does not seem to work. when running python manage.py runserver in the terminal window, the pro

2024-01-16 11:41:55 -0500 answered a question Using the testing tool to run Django tests

Hello I am sorry but I do not understand you last suggestion. Should I write import manage in the main section of the f

2024-01-14 12:45:27 -0500 answered a question Using the testing tool to run Django tests

I am trying again to use the testing tool for my django project and I do not understand your suggestion of having severa

2024-01-14 12:10:38 -0500 answered a question Using the testing tool to run Django tests

Hello You are right. I did not uncheck the django test framework in the project testing tab properties. If I do uncheck

2024-01-14 12:09:52 -0500 received badge Famous Question (source)
2023-12-20 10:59:29 -0500 marked best answer Using the testing tool to run Django tests

I have several django tests files . Each one of them has a launch configuration. when I debug individually each test file using the green arrow everything is fine. When I try to use the testing tool, the tests display with a blue question mark. When I right-click run test on one of the files , it displays a line manage.py , the line below is could not read any output from test runner . Then it displays a traceback with an error moduleNotFoundError no module named settings. There seems to be a problem

2023-12-20 05:11:50 -0500 answered a question Using the testing tool to run Django tests

Hello Please excuse me. Yes I had not changed the Default Test Framework in the project properties as your comment sugge

2023-12-20 05:11:34 -0500 received badge Notable Question (source)
2023-12-19 04:27:27 -0500 answered a question Using the testing tool to run Django tests

Some test files are using django test framework, some testfiles are using unittest framework. The first ones have a laun

2023-12-19 04:27:01 -0500 received badge Popular Question (source)
2023-12-16 11:52:32 -0500 answered a question Using the testing tool to run Django tests

Hello I am completely lost with the comments above. If I go back to my initial request it is to launch each testfile in

2023-12-09 03:30:22 -0500 received badge Rapid Responder
2023-12-09 03:30:22 -0500 answered a question Using the testing tool to run Django tests

Hello I do not understand the workaround you propose. You say I would need to set/reset the testing tab launch configur

2023-12-08 09:06:03 -0500 asked a question Using the testing tool to run Django tests

using the testing tool to run django tests I have several django tests files . Each one of them has a launch configurat

2023-12-08 08:59:08 -0500 received badge Famous Question (source)
2023-12-08 08:59:08 -0500 received badge Notable Question (source)
2023-12-08 08:59:08 -0500 received badge Popular Question (source)
2023-12-07 10:29:56 -0500 marked best answer Django : dumpdata of database after tests with --keepdb

Hello I have a test script in my django project which creates some data in the test database. I launch the test using the green arrow and a launch configuration test --keepdb. The test terminates OK and displays 'Preserving testdatabase for alias default.'

Then I launch another configuration which contains the command dumpdata -o --database

The intention is to save the test database into a fixture so as to use it for other tests. I get the following error message :

CommandError: Unable to serialize database: The connection 'test_djangoLudd21' doesn't exist.

What am I doing wrong?

2023-12-07 10:26:35 -0500 received badge Rapid Responder
2023-12-07 10:26:35 -0500 answered a question Django : dumpdata of database after tests with --keepdb

Unfortunately I get the same behavoir outside of wing.

2023-12-07 08:24:44 -0500 received badge Notable Question (source)
2023-12-05 13:11:28 -0500 asked a question Django : dumpdata of database after tests with --keepdb

django : dumpdata of database after tests with --keepdb Hello I have a test script in my django project which creates so

2023-12-05 13:00:36 -0500 received badge Famous Question (source)
2023-12-05 13:00:36 -0500 received badge Notable Question (source)
2023-07-28 15:08:09 -0500 received badge Famous Question (source)
2023-07-28 15:06:06 -0500 received badge Popular Question (source)
2023-07-14 17:28:48 -0500 marked best answer Django project : Different ways to launch the debugger

Hello

I would like to make unique the way to launch debug test files whether they need unittest or Django test . For django test files, if I click on the green arrow and for unittest files I create a launch configuration associated to the file.

I cannot succeed in creating a launch configuration for a django test file that would not use the main entry point of the green arrow. I enter as run arguments manage.py test the name of the test file and in environment I select add to project values and set my own environment variables. This produces an error because the apps are not completely configured. What is wrong?

2023-07-03 08:36:53 -0500 marked best answer Does django show migrations command take into account environment variables set in project properties?

I have a function in my django settings which reads the VIRTUAL_ENVIRONMENT environment variable. When I run the wing command django show migrations, the environment variable is not appropriately set. I have set the virtual environment in the python environment of the project properties. I have also added in the inherited environment ! VIRTUAL_ENV = '' Did I do something wrong?

2023-07-02 10:34:18 -0500 asked a question Django project : Different ways to launch the debugger

django project : different ways to launch the debugger Hello I would like to make unique the way to launch debug test f

2023-07-01 11:50:32 -0500 commented question Clarification about environment variables

Right if it is entered in the lauch configuration of the TestingTab

2023-07-01 07:42:14 -0500 received badge Self-Learner ( source )
2023-07-01 07:42:12 -0500 marked best answer Using relative import in a test file

I have a tests module which ends with if_name_ = '__main--' : import unittest unittest.main().

I would like to be able to use relative imports in the module. if I used a launch configuration I get a no parent package error, which is confirmed by a print at the top of the module where package is None. My understanding is that therefore I should launch it as a module with python -m When I select this option and add the name of the module as a run argument in the form of parent_package.module wing refuses to laucnh the module sayin it needs a dotted name.

Do you have a hint to launch this module as a main. I thank you in advance.

PS. I have a __init__.py in the same directory as my test module. and the parent.parent.parent directory is in the python Path

2023-07-01 02:58:52 -0500 asked a question Clarification about environment variables

clarification about environment variables Hello It seems that environment variables added in a launch configuration for

2023-07-01 02:31:23 -0500 answered a question Using relative import in a test file

Hello the new release 9.1.1.3 does solve the problem and python -m works.

2023-06-28 13:36:36 -0500 commented question Using relative import in a test file

Hello I just downloaded a the latest version and installed it. As far as the display of files It does not change anythin

2023-06-28 12:05:32 -0500 commented question Using relative import in a test file

Hello I strongly suspect that my wing configuration is broken. I tried to add more directories into the project properti

2023-06-28 11:30:01 -0500 commented question Using relative import in a test file

I have the same problem with all my test files which are named tests_ AnyHow I do realize that I need to add environment

2023-06-28 11:19:52 -0500 answered a question Using relative import in a test file

I have the same problem with all my test files which are named tests_ AnyHow I do realize that I need to add environment

2023-06-28 09:25:29 -0500 received badge Popular Question (source)
2023-06-28 09:17:53 -0500 answered a question Using relative import in a test file

Hello I Have tried all combinations from the testmodule all the way "up" to the main directory of the projcet. I have d

2023-06-28 04:14:51 -0500 answered a question Using relative import in a test file

HelloI think I cannot do this. I am in a django project and want to debug a test-file with unittest. My understainding i

2023-06-26 17:14:26 -0500 received badge Notable Question (source)