kaizendorks / pymongo_inmemory

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

Due to OS version detection, ubuntu and debian are detected as linux, limiting maximum the version of mongo to 4.0 #115

Open rdar-lab opened 3 weeks ago

rdar-lab commented 3 weeks ago

Describe the bug The OS detection will detect ubuntu and debian as 'linux' As such the URLS for download will be limited to a maximum of version 4.0

To Reproduce Steps to reproduce the behavior:

  1. Use ubuntu server/desktop
  2. Try to set the version using env variables to 6.0
  3. Run with pymongo_inmemory
  4. Check Mongo server version. It will be 4.0

Expected behavior Version 6.0 should be installed

Logs Not applicable

Screenshots Not applicable

Context:

rdar-lab commented 3 weeks ago

PR for a fix: https://github.com/kaizendorks/pymongo_inmemory/pull/114