al-serebrov / python-auto-ria Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
There are some parameters, that look like they are boolean (True / False):
myCarAveragePrice = RiaAverageCarPrice(
....
custom=0,
damage=0,
under_credit=0,
confiscated=0,
on_repair_parts=0
)
These look like boolean parameters, but they are handled as integers.
Can they be something different than 0 or 1?
If not - they should be bool
and not int
.
The test for average calculation using all search parameters should be added.
Now there are 11 requests in the API implementation, there are issues:
It's needed to add checks for presence of parameters and rewrite an __init__()
method of RiaAverageCarPrice the way it doesn't make unnecessary requests.
We need to decide whether the state parameter would be required, making the whole-country price search unavailable, or we shouldn't make request getting a list of cities if the state isn't set.
The functions select_item()
, select_list()
are in use while there are no tests for them.
Tests should be added for:
Now request mocks are inside the test_average.py
, but they should be moved to separate fixture in the conftest.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.