Class for autotests GoogleAppEngine Python3 app.
Install
pip install test-helper-gae3
Usage in tests
import unittest
from google.appengine.ext import ndb
from test_helper_gae3 import TestGae3
class ModelTest(ndb.Model):
name = ndb.StringProperty(default='')
class TestCase(unittest.TestCase, TestGae3):
def setUp(self):
super().setUp()
# For using queues names other then 'default', root_path dir must contain file
# 'queue.yaml' (or 'queue.yml') with correct queues definition.
# If root_path set to None, only 'default' queue is available.
TestGae3.set_up(self, 'path/to/folder/with/queue.yaml') # activate GAE testbed
def tearDown(self):
TestGae3.tear_down(self) # deactivate GAE testbed
super().tearDown()
def test_record_count(self):
self.check_db_tables([
(ModelTest, 0), # no records in ModelTest
])
ModelTest().put()
self.tester.check_db_tables([
(ModelTest, 1), # one record in ModelTest
])
Metadata
Release files for test-helper-gae3 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| test_helper_gae3-1.2.tar.gz | 4.2 kB | Without provenance | Details for test_helper_gae3-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| test_helper_gae3-1.2-py3-none-any.whl | Python 3 | none | any | Details for test_helper_gae3-1.2-py3-none-any.whl |
Total release size: 8.8 kB
Release files / test_helper_gae3-1.2.tar.gz
| Download URL | test_helper_gae3-1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dd8bdbd8d6b336b57d32cc363371df4a1aac3b8e0dc286d5aaf5b6f5b35b15e
|
|
BLAKE2b-256 checksum How to use checksums |
d1fe99c510563fb3fb4fbe646256b01ef22fbac37bfab7f73f115eb4971f4e69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / test_helper_gae3-1.2-py3-none-any.whl
| Download URL | test_helper_gae3-1.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94f7a5faef55eacdaf7d50dbcc11cf9d32ebbd9e87af0790d68c635cf5e808e9
|
|
BLAKE2b-256 checksum How to use checksums |
58b1bb0a4c786eeb8af8105807fd1b0704f08c250b67fc1299f7bbeb33634158
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for test-helper-gae3 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.