All Projects → gabrielcnr → Pytest Datadir

gabrielcnr / Pytest Datadir

Licence: other
pytest plugin for manipulating test data directories and files

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pytest Datadir

Pytest Mimesis
Mimesis integration with the pytest test runner. This plugin provider useful fixtures based on providers from Mimesis.
Stars: ✭ 46 (-65.93%)
Mutual labels:  plugin, pytest
Pytest Selenium
Plugin for running Selenium with pytest
Stars: ✭ 246 (+82.22%)
Mutual labels:  plugin, pytest
Pytest Repeat
pytest plugin for repeating test execution
Stars: ✭ 99 (-26.67%)
Mutual labels:  plugin, pytest
Pytest Html
Plugin for generating HTML reports for pytest results
Stars: ✭ 404 (+199.26%)
Mutual labels:  plugin, pytest
Fanray
A blog built with ASP.NET Core
Stars: ✭ 117 (-13.33%)
Mutual labels:  plugin, tdd
Pytest Check
A pytest plugin that allows multiple failures per test.
Stars: ✭ 131 (-2.96%)
Mutual labels:  pytest
Coremediaio Dal Example
Apple's CoreMediaIO DAL plugin example - modernized
Stars: ✭ 132 (-2.22%)
Mutual labels:  plugin
Kk plugins
Plugins for Koikatsu, EmotionCreators, AI Girl, and Honey Select 2
Stars: ✭ 129 (-4.44%)
Mutual labels:  plugin
Citador
Quote messages on Discord with a simple click
Stars: ✭ 130 (-3.7%)
Mutual labels:  plugin
Filepond
🌊 A flexible and fun JavaScript file upload library
Stars: ✭ 11,869 (+8691.85%)
Mutual labels:  plugin
Webpack Internal Plugin Relation
🔎 a tiny tool to show the relation of webpack internal plugins & hooks
Stars: ✭ 135 (+0%)
Mutual labels:  plugin
Vue Good Table
An easy to use powerful data table for vuejs with advanced customizations including sorting, column filtering, pagination, grouping etc
Stars: ✭ 1,824 (+1251.11%)
Mutual labels:  plugin
Plugin.video.catchuptvandmore
Replay, Live TV and websites videos addon for Kodi
Stars: ✭ 131 (-2.96%)
Mutual labels:  plugin
Flutter geocoder
Flutter plugin for forward and reverse geocoding
Stars: ✭ 134 (-0.74%)
Mutual labels:  plugin
Poetry Dynamic Versioning
Plugin for Poetry to enable dynamic versioning based on VCS tags
Stars: ✭ 131 (-2.96%)
Mutual labels:  plugin
Leapunreal
Leap Motion SDK for the Unreal Engine.
Stars: ✭ 134 (-0.74%)
Mutual labels:  plugin
Baseelements Plugin
FileMaker Pro plugin used for BaseElements to provide file, dialog and XSLT functions.
Stars: ✭ 130 (-3.7%)
Mutual labels:  plugin
Textureupdateexample
An example showing how to update textures from a native plugin in Unity.
Stars: ✭ 133 (-1.48%)
Mutual labels:  plugin
Streamdeck Tools
The Stream Deck Tools library wraps all the communication with the Stream Deck app, allowing you to focus on actually writing the Plugin's logic
Stars: ✭ 133 (-1.48%)
Mutual labels:  plugin
Autoenv
Autoenv for zsh
Stars: ✭ 131 (-2.96%)
Mutual labels:  plugin

pytest-datadir

pytest plugin for manipulating test data directories and files.

Build Status PyPI PythonVersions CondaForge

Usage

pytest-datadir will look up for a directory with the name of your module or the global 'data' folder. Let's say you have a structure like this:

.
├── data/
│   └── hello.txt
├── test_hello/
│   └── spam.txt
└── test_hello.py

You can access the contents of these files using injected variables datadir (for test_ folder) or shared_datadir (for data folder):

def test_read_global(shared_datadir):
    contents = (shared_datadir / 'hello.txt').read_text()
    assert contents == 'Hello World!\n'

def test_read_module(datadir):
    contents = (datadir / 'spam.txt').read_text()
    assert contents == 'eggs\n'

pytest-datadir will copy the original file to a temporary folder, so changing the file contents won't change the original data file.

Both datadir and shared_datadir fixtures are pathlib.Path objects.

Releases

Follow these steps to make a new release:

  1. Create a new branch release-X.Y.Z from master.
  2. Update CHANGELOG.rst.
  3. Open a PR.
  4. After it is green and approved, push a new tag in the format X.Y.Z.

Travis will deploy to PyPI automatically.

Afterwards, update the recipe in conda-forge/pytest-datadir-feedstock.

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].