summaryrefslogtreecommitdiffstats
path: root/tests/tpb06/foo/test_foo.py
blob: 926af30f3209fc7e5e305ef6a12ec0af785f5b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
from unittest import TestCase
import subprocess


class RequiredTest(TestCase):
    def test_tests_are_executed(self):
        open('test-executed', 'w').close()

    def test_entry_point_executed(self):
        path, _, __ = os.environ['PATH'].partition(":")
        assert path.endswith("/scripts")
        subprocess.run('foo', check=True)