Skip to main content

An uncomplicated package to test decorated functions directly from your terminal

Project description

quyk

An uncomplicated tool to test decorated functions directly from your terminal.

Installation

Install quyk into you project directory.

pip install quyk

or

poetry add quyk

Usage

Import one decorator and apply it to any functions you want to test from the command line:

from quyk import cli_test

@cli_test(test_args=("foo", "bar"))
def stitch_together(*args):
	return f"stitched {'-'.join(args)}"
# ...

Scan all .py files in your project for decorated functions:

$ quyk scan							# default to entire current directory
>  Scanning directory
>  Found 4 decorated functions 

... or hone into a specific folder:

$ quyk scan ./tricky_feature		# optionally provide [dir_path]
>  Scanning directory
>  Found 2 decorated functions 

Interactively run your scanned tests:

$ quyk test							# use Arrows, Enter, and Escape to pick a test 
> [?] Select a function to test: 
   > stitch_together
     do_something
     do_something_else
> stitch_together: stitched foo-bar

... or directly test a specific function

$ quyk test do_something			# optionally provide [func_name]
> do_something: This thing!

Or export the runnable test files and edit them to your liking:

$ quyk export						# optionally pass [dir_path] to place test files there
>  Exporting tests
>  Test files exported to /path/to/project/quyk_tests

That's it!

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

quyk-0.1.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quyk-0.1.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file quyk-0.1.1.tar.gz.

File metadata

  • Download URL: quyk-0.1.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic

File hashes

Hashes for quyk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 18a71990323fa84b38e05364ae773ed2a4254f68d35f89ce34dd06d2a98f1303
MD5 6015618ad431de0c8c3026aedd76c2ce
BLAKE2b-256 d2deaa6f5be90e3a5f38912390a1e3698e2fb592b6fb2fcf8f523fba82c052bd

See more details on using hashes here.

File details

Details for the file quyk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: quyk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic

File hashes

Hashes for quyk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d5afb4d253773a65ecd68e9f6c95bbe462f559df6a2f4e999dc1342393cf9be
MD5 3e99a2ed2407e7770c3dfd01a1f8b712
BLAKE2b-256 d146440fd1e9fadff2626663d7380b46321031f5eb325e575d7d1b677f297e6a

See more details on using hashes here.

Supported by

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