File: run

package info (click to toggle)
pytest-repeat 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 120 kB
  • sloc: python: 301; sh: 12; makefile: 2
file content (17 lines) | stat: -rwxr-xr-x 251 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
cat <<EOF > test.py
import pytest

@pytest.mark.repeat(3)
def test_repeat_decorator():
    pass
EOF

pytest-3 --strict-markers test.py
echo "run: OK"