Closed cuducos closed 6 years ago
Hi @cuducos it seems that the tests keep failing, I'll get the details below.
What I did to test this PR:
Cloned the project:
$ git clone git@github.com:datasciencebr/serenata-toolbox.git
Change to its folder:
$ cd serenata-toolbox
Change to @cuducos’ branch:
$ git fetch origin
$ git checkout -b cuducos-fix-aiohttp-error origin/cuducos-fix-aiohttp-error
$ git merge master
Run the tests:
$ pip install pytest pytest-cov
$ pytest
What I'm thinking: the problem is no more the datasets on Câmara, but another think that I couldn't identify. This PR fix an error with the asyncio library, and liberate the unit tests. What do you think we add this refactor to the code and then fix the problem with the journey tests?
Running the test that is getting the error, I can see that the only thing that is different is that the order from the expectedConditions = ['Holder', 'Substitute']
and the actualConditions = df.condition.unique()
that shows [Substitute, Holder]
when I get the log:
So I suggest to merge this PR and then solve the problem with the order of the expectedConditions = ['Holder', 'Substitute']
, to check if we need to explore more ;)
So I suggest to merge this PR and then solve the problem with the order of the
expectedConditions = ['Holder', 'Substitute']
, to check if we need to explore more ;)
IMHO it makes sense: this erro has nothing to do with this PR.
the only thing that is different is that the order from the
expectedConditions = ['Holder', 'Substitute']
and theactualConditions = df.condition.unique()
that shows[Substitute, Holder]
BTW using a set
instead of a list
fixes that error ; )
BTW using a set instead of a list fixes that error ; )
Based on what I learnt yesterday I'll open an PR fixing that soon.
What is the purpose of this Pull Request? Last build with the updated version of
aiohttp
has broken our tests CI.What was done to achieve this purpose? This PR adapts our code to the new error architecture of current version of
aiohttp
, usingTimeoutError
fromconcurrent.futures
instead ofaiohttp.client_exceptions
.How to test if it really works?
$ pytest
or try to download something and hope the server takes too long to cause a timeout ; )Who can help reviewing it? @anaschwendler