Skip to content

Python mocks 🧌 providing dummy imports e.g. for testing the IMCF Fiji Python packages.

Notifications You must be signed in to change notification settings

imcf/imcf-fiji-mocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python mocks 🧌 package for Fiji related code

Initially created for enabling pdoc to generate IMCF Fiji Python packages API docs. Now also used to run pytest on e.g. the python-imcflibs package.

The goal of this repo is to provide mocks that can be used to build a fake (thin) pip installable Python package that will allow tools like pdoc or pytest to build up the AST (abstract syntax tree) by using the mocked objects while performing the imports.

Building artifacts

You'll need poetry installed locally, then using fish run:

rm -r dist/
poetry build -vv

Using release artifacts from GitHub

To create a virtualenv you may use artifacts attached to a public release on Github, for example using the 0.1.0 release:

set REL "0.1.0"
set URL_PFX "https://github.com/imcf/imcf-fiji-mocks/releases/download/v$REL"

pip install --upgrade \
    $URL_PFX/imcf_fiji_mocks-$REL-py3-none-any.whl \
    $URL_PFX/micrometa-15.2.2-py3-none-any.whl \
    $URL_PFX/sjlogging-0.1.0-py3-none-any.whl \
    pdoc \
    olefile \
    pip

About

Python mocks 🧌 providing dummy imports e.g. for testing the IMCF Fiji Python packages.

Resources

Stars

Watchers

Forks

Languages