-
Notifications
You must be signed in to change notification settings - Fork 24
Conversation
@@ -30,10 +30,12 @@ | |||
|
|||
DATABASE_ROUTERS = ('multidb.PinningMasterSlaveRouter',) | |||
|
|||
SITE_URL = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently this is just for tests here. It's been removed as a thing from playdoh apparently. Maybe just mock this one too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best would be if we could remove the need for that setting from tests here, but I've not looked at how hard that would be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remove this, the tests fail somehow even when there are @patch.object(settings, 'SITE_URL', 'http://testserver')
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to add it to the local.py when that file is written in tests/__init__.py
then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to keep this out because I remember other tools would use it if it existed. Not sure if those libs still exist, but this does have breakage potential if I'm remembering correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding SITE_URL = ''
to .playdoh/funtestapp/project/settings/local.py-dist
solved the issue. Will send a separate PR for that.
I wouldn't do that in Playdoh either. What I'm saying is that the funfactory test suite is already modifying that local.py as part of tests setup. Just add the settings programmatically there and the suite should pass. |
I got it. I could just add one line in |
The all tests passed. |
Nice! Works for me. Thanks @kyoshino 🍰 |
The tests passed locally with the
tox
command.