Closed lecocqe closed 3 years ago
Hello Eric,
you have to install pytest
first: https://docs.pytest.org/en/stable/getting-started.html
Note that pytest is not required to make the project works (nor the HA component), this information is more for developers.
Regards,
Thomas
Hello Thomas,
ok, i understand. i'm trying to "play" with your code. but i need a first working example. because at the moment, I got "invalid syntax" at "connector" in "json = await connector.get(urls.facilities_list())"
from pymultimatic.api import Connector, urls
session = aiohttp.ClientSession connector = Connector('user', 'pass', session) json = await connector.get(urls.facilities_list())
regards,
Eric
Hello,
sorry for the late reply. The code moved to async
. So you probably take a look at issue #43 I will update the doc with this example
Hello,
Just what is need.
Thx for this great job you made with this components.
From: Thomas Germain notifications@github.com Sent: Thursday, 29 October 2020 22:06 To: thomasgermain/pymultiMATIC pymultiMATIC@noreply.github.com Cc: Eric Lecocq lecocqe@outlook.com; Author author@noreply.github.com Subject: Re: [thomasgermain/pymultiMATIC] pytest (#36)
Hello,
sorry for the late reply. The code moved to async. So you probably take a look at issue #43 https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthomasgermain%2FpymultiMATIC%2Fissues%2F43&data=04%7C01%7C%7C85470078926d4b22a82508d87c4e7397%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637396023668447615%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=6%2FugBluO%2Bzq0Rw7aBvWpqa3sIBAQwn1zzgGgCsfrIQ0%3D&reserved=0 I will update the doc with this example
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthomasgermain%2FpymultiMATIC%2Fissues%2F36%23issuecomment-719021892&data=04%7C01%7C%7C85470078926d4b22a82508d87c4e7397%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637396023668457615%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9QeBzFgaE8i5cxx6w5jPBqXqTrPVpqXe3uzGqEMwRec%3D&reserved=0 , or unsubscribe https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEOK7RXAG75KUWK3QWDDULDSNHKL3ANCNFSM4OVOPG2A&data=04%7C01%7C%7C85470078926d4b22a82508d87c4e7397%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637396023668467607%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=BhH0XkBRhD6w3JxeWLyTLCpV74fzBnJTF7qfLYaEgKA%3D&reserved=0 . https://github.com/notifications/beacon/AEOK7RXGFVQ4Z4Q5XO47OO3SNHKL3A5CNFSM4OVOPG2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFLNWORA.gif
dear,
in the documentation, you speak "use pytest to run the tests", but after installing, i run pytest: "no such file".
best regards,