kaizendorks / pymongo_inmemory

A mongo mocking library with an ephemeral MongoDB running in memory.
MIT License
40 stars 13 forks source link

Remove extraneous bin folder mechanism, use extracted bin folder #42

Closed ekarademir closed 3 years ago

ekarademir commented 3 years ago

Closes #41 Closes #10

I realised that the bin folder mechanism was unnecesessarily complex and lead to file permissions errors while copying and pasting extracted binary contents. I don't exactly remember why it was necessary in the first place. In any case there is no reason not to use the extracted bin folder. This got rid of Windows file permissions errors and need to check file permissions in the tests.

On the way I also realised that, after subprocess module sends a termination signal, it takes time for MongoD to shutdown. So now, exit process properly wait until the server is down.