Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowDiskUse not supported #858

Open
engFelipeMonteiro opened this issue Oct 2, 2023 · 0 comments
Open

allowDiskUse not supported #858

engFelipeMonteiro opened this issue Oct 2, 2023 · 0 comments

Comments

@engFelipeMonteiro
Copy link

In mocking scenario usually the database is significantly reduced, so the needs os allowDiskUse option is usually not needed, but in production it may be needed, for me it is better that the option don't take effect instead of reasing a exception of no supported.

For better test coverage, it would be good if it doesn't raise a exception.
Follows my workaround this problem:

        if TESTING:
            options = {}
        else:
            options = {"allowDiskUse": True}
        last_operation_fails = operations_col.aggregate(query, **options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant