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
Implement #123 arbitrary Mongo URL & collection name #124
Conversation
Thanks for the pull request. @aastafiev I remember the unit test for Mongo was skipped because of Python version incompatibility? |
Hi,
You are right. We skipped them because of 2.7-3.5 python incompatibility. Could we write python version check for skipping tests?
…---------------------
Sincerely yours,
Aleksey Astafiev
On 7 Mar 2020, at 09:01, Eric Zhu ***@***.***> wrote:
Thanks for the pull request. @aastafiev I remember the unit test for Mongo was skipped because of Python version incompatibility?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Yes, it's in `sys.version_info`.
…On Sat, 7 Mar 2020 at 03:34, aastafiev ***@***.***> wrote:
Hi,
You are right. We skipped them because of 2.7-3.5 python incompatibility.
Could we write python version check for skipping tests?
---------------------
Sincerely yours,
Aleksey Astafiev
> On 7 Mar 2020, at 09:01, Eric Zhu ***@***.***> wrote:
>
>
> Thanks for the pull request. @aastafiev I remember the unit test for
Mongo was skipped because of Python version incompatibility?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#124?email_source=notifications&email_token=AAGU2IVXCDABRCEVFTS2CJ3RGIBJZA5CNFSM4LDD2UY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEODS5YY#issuecomment-596061923>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGU2IR4STT2BQN4XWTSPQ3RGIBJZANCNFSM4LDD2UYQ>
.
|
@ekevoo So is your unit tests failure caused by Python version issue? |
Turns out the check was already there:
Travis had accepted the changes. I initially didn't try very hard to run unit tests, it turns out that they do require a running MongoDB server to run, which is a little problematic, but I'm not qualified to fix. So I just ran a local server ( |
Thanks @ekevoo! |
Thank you too! @ekzhu and @aastafiev! :) Can you tell when you might next release it? |
I already have. https://pypi.org/project/datasketch/1.5.1/#history 🚢 |
Ah, I was checking the releases tab instead. 😅 |
Hi, the version that was published on PIP as 1.5.1 doesn't contain this. |
Are you sure? I just checked this source distribution and I can see the new code in there. |
I am sure. When I pip install, that's the address I get instead.
https://files.pythonhosted.org/packages/e9/7a/975274a59ab7e0117a8304ae97220b5800d31f69813c97753a79239dabac/datasketch-1.5.1-py2.py3-none-any.whl
…On Thu, 19 Mar 2020 at 19:54, Eric Zhu ***@***.***> wrote:
Are you sure? I just checked this source distribution
<https://files.pythonhosted.org/packages/9b/33/fd79cb9e1f686ffce4fb9c50b21d7425f06546dc10628449f979e726a1fe/datasketch-1.5.1.tar.gz>
and I can see the new code in there.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#124 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGU2IV7DJJPHKGFVWRAPWDRIKWB5ANCNFSM4LDD2UYQ>
.
|
Thanks. Could you show a simple script that demonstrate it? I don't have Mongo Atlas. |
That's okay, you can test using local mongo with the new URL feature.
|
I have also updated the documentation a bit.
The purpose of the function
AsyncIOMotorClient.get_default_database
is to allow for the Mongo URL to define a database. If the URL contains a database, that database in the URL will be used, otherwise, the calculated database name is used. As forget_collection
, I changed it for consistency only.I wanted to update the unit tests, but they were skipped… and when I tried to un-skip them everything failed spetacularly. I'm not sure what to do about that.
Cheers!