« first day (4551 days earlier)      last day (404 days later) » 

11:47 AM
In application testing backed with a database, do people generally just create a new database itself, or switch schema? This specific case is postgres and I'm now back in control of my RDBMS so I have to start thinking about this again. My instinct is just to have a separate DB altogether
The reason being that before, I could only ever create new schemas and I end up passing around the current schema through every single query via "SET search_path TO %(schema)s;" and I just don't think I need to bother if I set the SQLA engine up on a new database right from the start. But maybe I'm missing some benefit of having the scratch pad in the same db but a different schema
It doesn't help that zzzeek seems to suggest that passing the schema around my app would be best (extrapolating), and switching between live and test kind feels like that might fall into that category right off the bat, so I'm curious about whether there is anecdotal evidence to support this
 
 
2 hours later…
1:38 PM
new database for sure! in my case i'm using schemas to have more structure so that's another reason, but even without that it's so much cleaner to not have tests access the same DB as your local dev instance (or worse if you're crazy enough and have prod / staging on the same DB) at all
FWIW, by default my tests even use initdb to set up a standalone postgres server instance in /tmp that's deleted again after the tests finished, but i usually use an env var to point my tests to an existing postgres instance+db to make things faster
 
Perfect, thanks ThiefMaster. Your setup is exactly what I was thinking and I already have alembic hooked up so I should be able to pull up and tear down an arbitrary DB in every case as the code evolves, in addition to an init_db method
Actually, I hadn't got as far as the standalone postgres server, but that's an interesting idea :)
 
2:11 PM
That's a really cool resource, thanks!
 
2:54 PM
Please see the room rules particularly about bringing questions here from main within 48 hours
@lilsnow02 I was very clear in what I said to you. Don't test me by reposting as this will not end well
 
I am sorry. I didn't noticed. Thank you for reminding me.
 
 
1 hour later…
Sam
4:56 PM
Hi , can someone help with "How to deploy python code (which is using api call and also have data repository) on azure function via vs code.
I have python code running in my laptop but not sure how to deploy on azure function...however I have followed instructions from internet but it's failing
 
You need to be a lot more specific about the issues you're facing
 
yeah, there is probably a 100 different things that could be going wrong that fall under that vague description
 
It's this?
Even if it is that question, you've ended it with "it's failing" so that doesn't give us any specific starting point
 
5:16 PM
The mistake was "followed instructions from internet".
 
 
2 hours later…
7:16 PM
Hello, is there any way to hide a QSpacerItem. QSpacerItems are not visible but it has some no visible space which is reserved with no reason.
I don't want to remove it permantly because in the future i may use it.
 
so you want to disable it temporarily, so it takes up 0 space temporarily?
I'd say that you can always remove it from its parent
 
yes i may use sizeHint somehow.
 
 
1 hour later…
8:40 PM
Slides from my lightning talk yesterday at PyTexas.
3
 
8:58 PM
thanks, the build-python site is getting bookmarked.
 

« first day (4551 days earlier)      last day (404 days later) »