Skip to main content

Zemfrog unit testing tools

Project description

zemfrog-test

Zemfrog unit testing tools

Features

  • Support automatically create unit tests for API / blueprints
  • Available fixtures:
    • client

      This is to access the Client class to interact with the API

    • app_ctx

      This is to enable the flask context application

    • req_ctx

      This is to activate the flask request context application

    • user

      This is to generate confirmed random users

Warning

zemfrog test is available a finalizer to delete all users when the test session ends. so you need to create a special database for testing.

Usage

Install this

pip install zemfrog-test

And add it to the COMMANDS configuration in the zemfrog application.

COMMANDS = ["zemfrog_test"]

Now that you have the test command, here is a list of supported commands:

  • init - Initialize the tests directory in the project directory.
  • new - Create unit tests for the API or blueprint. (The names entered must match APIS and BLUEPRINTS configurations. For example zemfrog_auth.jwt)
  • run - To run unit tests. It doesn't work with the pytest command, don't know why. :/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zemfrog-test-1.0.3.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

zemfrog_test-1.0.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file zemfrog-test-1.0.3.tar.gz.

File metadata

  • Download URL: zemfrog-test-1.0.3.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.6.9 Linux/5.4.0-70-generic

File hashes

Hashes for zemfrog-test-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6f20f19a3f08bd4d04c01660bffa6b998c4210ed1c4d7aa2ba12630c6209c3bf
MD5 496a65bfb1d31c057f36ba680765120e
BLAKE2b-256 5b2b3a1f73793d7018a9562c16f991ccf93669bdd10fba623a0a8eefbfde50b3

See more details on using hashes here.

File details

Details for the file zemfrog_test-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: zemfrog_test-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.6.9 Linux/5.4.0-70-generic

File hashes

Hashes for zemfrog_test-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 594dfbf5b10e74e5b4bf2cae6067a66c1731816e968b92c4e6561c94fc3cd87c
MD5 48d441abf7090e60333e6c625d6f0987
BLAKE2b-256 f3a5055a856184744a3dd4d2bdb0ee8c839df270d70a8b2cf403a383ac9f1127

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page