Comments (6)
You could use gcd
: the local development server, see:
https://developers.google.com/datastore/docs/tools/devserver
from google-cloud-python.
That looks good for local development. It runs on Java right ?
I wonder how difficult it would be to patch in the stubs from AppEngine's dev_appserver.py so that i can use something akin to ext.testbed to unittest locally (ie, without hitting the wire, stay all in Python).
from google-cloud-python.
That looks good for local development. It runs on Java right ?
Yes, it is embedding the App Engine Java development server and running the same servlet that is running in production.
I wonder how difficult it would be to patch in the stubs from AppEngine's dev_appserver.py so that i can use something akin to ext.testbed to unittest locally (ie, without hitting the wire, stay all in Python).
You would have to handle the datastore_v1.proto
to datastore_v4
convertion somehow.
Keep in mind that datastore_v4
private interface is not really documented and also subject to change: datastore_v1
is the public versionned interface.
from google-cloud-python.
Yikes. Well I realllly don't want to force people to spin up a local server in order to run unit tests...
We'll have to come up with a way to stub this out.
from google-cloud-python.
#130 adds 100% unit test coverage for modules in gcloud, gcloud.datastore. I would call its strategy "stubbing" (testcases explicitly stub out the http or connection objects) rather than "mocking" (using a general-purpose utilitiy like 'mock').
from google-cloud-python.
#106 exists to cover the deficiencies of testing with stubbed / mocked backends.
from google-cloud-python.
Related Issues (20)
- [WebRisk Api] search_hashes() always returns a empty list of threat hashes HOT 2
- A module not found error in a python-selenium project HOT 2
- Update post processing customizations for grafeas HOT 1
- 'Credentials' object has no attribute 'universe_domain' in package google-analytics-data: HOT 17
- SecretManagerServiceClient: missing staticmethod decorators on two methods HOT 1
- Datacatalog SearchCatalogRequest fails when returning more than one page when using a policytag query HOT 1
- Can't use run_v2 from google-cloud-run
- Github Action docs build fails with `Could not install packages due to an OSError: [Errno 28] No space left on device`
- Cloud Functions: test_iam_permissions returns 501 HOT 6
- google-cloud-monitoring tests depend on mock library which causes packaging problems on Fedora
- How to create documents with the discovery engine? HOT 2
- `prerelease_deps` nox session fails for google-cloud-gke-hub HOT 1
- Docs build is failing due to known issues in proto comments HOT 1
- Value Error for speech_v2: RecognitionConfig has no field as language_codes HOT 1
- Missing summaryWithMetadata google-cloud-discoveryengine HOT 2
- Warning: a recent release failed HOT 1
- Cyclical bug report guidance on secrets-manager client
- secret-manager client 2.18 incompatible with google-auth 2.24 HOT 4
- Warning: a recent release failed HOT 1
- some TextToSpeechAsyncClient methods return Any type HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-cloud-python.