ovakefali13 / buerro Goto Github PK
View Code? Open in Web Editor NEW2020 ASE - Project
License: MIT License
2020 ASE - Project
License: MIT License
buerro/usecase/test/test_lunch.py
Line 3 in 1776540
This line makes tests on develop fail.
Maybe there is a missing usecase file?
We could think about moving use cases to separate folders instead of having a use case wide test folder. I'm thinking of usecase/lunchbreak/test/test_usecase.py
.
buerro/usecase/cooking/cook.py
Line 30 in 7c674c4
Looks a bit like duplicate code. I feel like a Class instantiation of ExampleUsecase(True) is not that meaningful. Why should the Usecase itself bother about setting Mocks? I would leave that to the test. You're already importing the Mock remots there anyway.
buerro/services/yelp/test/test_service.py
Line 41 in 1776540
To me it's a bit unintuitive that the yelp services requires two interactions for a request.
I would expect request_businesses
to return the businesses. Instead it is setting them. If this is the way it's meant to be I would rename it to set_businesses
.
I think it could be restructured, though: request_businesses
could get some basic search params and fill them with provided information. You could also think about defining these rather remote-specific base parameters in the remote.
Using the actual APIs the real temperature will only rarely equal expected discrete temperatures. Instead a test could verify that a response is in a range, or of a certain type (float).
I've been getting nightmares thinking about the voice you are using for the T2S feature. Please change it. Thanks
buerro/usecase/lunchbreak/lunch.py
Line 117 in ed9fb0e
buerro/usecase/lunchbreak/lunch.py
Line 92 in ed9fb0e
The CalService is instantiated with the iCloud Remote non-regarding of whether we are in a mock or non-mocking test.
Also you might think about moving the setting of Mock remotes and services out of the class into the test. Even though it might require some setters, I feel like it shouldn't the classes responsibility to handle mocking.
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.