This is great news but I just have to say it: we need Proton Drive on Linux. Still very happy though.
sajran
Software development and computer stuff in general is my passion. I enjoy doing it as a hobby even after doing it at work. If I didn't have to work for money, I would probably work on some open source software. In fact that's kinda my dream / goal - achieve financial independence and work on open source as I please.
Very interesting experiment. Thanks for sharing! Maybe I'll find some time to run the benchmarks on my Pixel 7 in the upcoming days.
But... How do you even know you can smell ants? Why did you try it? Or can you smell them from meters away?
But... How do you even know you can smell ants? Why did you try it? Or can you smell them from meters away?
I don't see how this supports your point then. If "setting up proxy" means "packaging it to run on thousands user machines" then isn't there obvious and huge potential for a disastrous fuckup?
I might be wrong but I assumed it's perfectly obvious to OP and it's the kind of joke where something is funny because you stretch the meaning to read it literally. I chuckled actually, despite it making perfect sense.
Setting up proxy is not engineering.
Man, I didn't get what I'm looking at at first. But after reading the description and watching the video - pretty amazing!
Of course, but when indentation has a syntactic meaning the formatter often won't be able to fix it.
It's probably more prone to mistakes like that, true. But in practice I really never witnessed this actually being a problem. Especially with tests and review.
Since you have all your
shutil.copytree
s andsys.path
manipulation at the top level of the test modules, they are executed the moment those modules are imported.unittest
likely imports all discovered test modules before actually executing the tests so the set up of both modules is executed in random order before the tests are run. The correct way to perform test setup is usingsetUp
andsetUpClass
methods ofunittest.TestCase
. Their counterpartstearDown
andtearDownClass
are used to clean up after tests. You probably will be able to get this to work somehow using those methods.However, I'm fairly certain that this entire question is an example of the XY problem and you should be approaching this whole thing differently. Copying the modules and their mock dependencies into a temporary directory and manipulating
sys.path
seems like an absolute nightmare and it will be a massive PITA even if you get it to a working state. I don't know what problem exactly you're trying to solve but I think you should really read up onunittest.mock
and even more importantly on dependency injection.