This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ag -w foo -l -0 | xargs -0 -n 1 sed -i '' -e 's/foo/bar/g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"author": "Raphael Pierzina", | |
"keywords": [ | |
"pytest", | |
"plugin" | |
], | |
"url": "https://github.com/pytest-dev/cookiecutter-pytest-plugin", | |
"variables": [ | |
{ | |
"default": "Raphael Pierzina", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pytest_collection_modifyitems(items, config): | |
selected_items = [] | |
deselected_items = [] | |
for item in items: | |
if 'new_fixture' in getattr(item, 'fixturenames', ()): | |
selected_items.append(item) | |
else: | |
deselected_items.append(item) | |
config.hook.pytest_deselected(items=deselected_items) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
set -e | |
set -u | |
set -x | |
for testdir in foobar hello/world example | |
do | |
mkdir -p $testdir | |
for i in {1..3} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import pytest | |
first_condition = False | |
second_condition = True | |
NewerOlder