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

32 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 project 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.

🚫 WARNING 🚫

This project and its packages do not contain any functional code that is useful in situations other than the ones described above!

Building artifacts

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

rm -r dist/
poetry build -vv

Installing / Creating a venv

To create a virtualenv for e.g. running pdoc, you can now simply use the packages from PyPI:

python -m venv venv
venv/bin/pip install --upgrade \
    imcf-fiji-mocks \
    "imcflibs>=1.5.0a1" \
    python-micrometa \
    pdoc

About

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

Resources

Stars

Watchers

Forks

Languages