Sometimes when I run tests with fixtures, I get something like django.db.utils.InterfaceError: Problem installing fixture '/home/lynoure/PycharmProjects/usertools2/useraccounts/fixtures/test-fixtures.json': connection already closed
Seems like there is some shifting limit to how many TestCases with fixtures I can run in one go
eblip joined the channel
_quinn has quit
redir joined the channel
drodger has quit
encod3 has quit
stduolc1 joined the channel
max3
fleetfox, where i do stick my overriden Route?
jonesnc has quit
encod3 joined the channel
drodger joined the channel
lavalamp joined the channel
Leeds has quit
fleetfox
max3: sorry, i have no clue either, Layer seems to be coupled to it
fikka joined the channel
max3
yes
v4ult_ has quit
Xard joined the channel
fleetfox
channels need work :)
r29v joined the channel
Haudegen has quit
max3
monkey patch it is :)
dang`r`us
there's #django-channels btw
ah you found it
fleetfox
does it have any traction? It was mostly dead when i tried
Lynoure
Any idea how I could solve that "connection already closed" thing?
fleetfox
Lynoure: when exception occurs in test setup it doesn't know how to recover
and you probably shouldn't do fixtures, try factories
fleetfox: I mean, other than this I'm really happy with the fixtures
fleetfox
because they are fragile and half assed :<
Lynoure
fleetfox: easy to use, mainstream django support, fast enough with the amounts of data I use, nicely documenting the test data needed
nazarewk has quit
fleetfox
well the issue with support is it's iffy. If you aks for fixture support here pople will probably tell you to not use them :)
anyways whatever works for you
mitaka has quit
encod3 has quit
Lynoure
fleetfox: Well, what would be your recommended starting point docs wise for factories for someone who currently has a small set of fixtures needed by multiple apps and just wants to hassle-free move to using factories?
redir has quit
fleetfox
i'm using factoryboy, i don't really have strong opinions regarding fixtures, just reciting what i've seen in here
Lynoure
fleetfox: any idea why factories are not in django itself? Or if there is any plans for that?
fleetfox
it seems to be out of scope. Testing is very opinioned topic
Haudegen joined the channel
drodger has quit
guhcampos_ has quit
drodger joined the channel
guhcampos joined the channel
Lynoure
fleetfox: most things in programming are :)
Yaser_Amiri joined the channel
python just is blessed enough to avoid some of the topics, such as tabs vs spaces and other formating, by the virtue of syntax and PEP8
Stragler joined the channel
skali has quit
jessamynsmith has quit
redir joined the channel
rpkilby has quit
jessamynsmith joined the channel
asadjb has quit
asadjb joined the channel
rpkilby joined the channel
XofP joined the channel
milardovich has quit
csotelo_at_work joined the channel
csotelo has quit
bakirelived has quit
bakirelived joined the channel
Stragler has quit
disturbedmime joined the channel
seds joined the channel
fikka has quit
MrFantastik has quit
felipebueno joined the channel
fikka joined the channel
matsaman joined the channel
felipebueno has quit
felipebueno joined the channel
hamub joined the channel
zhalla_ has quit
Haudegen has quit
zhalla_ joined the channel
Tomatosoup- has left the channel
choke has quit
jessamynsmith has quit
OtherAllan joined the channel
XofP has quit
Lauxley has quit
greg_f has quit
zhalla_ has quit
seds has quit
hamub has quit
seds joined the channel
chowmeined joined the channel
subleq has quit
rpkilby has quit
epopt joined the channel
encod3 joined the channel
negaduck has quit
encod3 has quit
encod3 joined the channel
max3 has quit
ams__ joined the channel
bakirelived has quit
slav0nic joined the channel
logix812 joined the channel
shredding joined the channel
ginseng joined the channel
chrisw__ joined the channel
logix812 has quit
logix812 joined the channel
shredding has quit
logix812
Unit testing custom fields. I assume I need to create a model with the field. It's not part of the app, so my guess is it's a test only model
_quinn has quit
I google'd around and found some examples, and it looks like I can create the model on the fly in the test setup.
however that seems to be missing in django 1.10+
connection.creation.sql_create_model
where else could I look for that or am I on the wrong track entirely?