File: test_basic.py

package info (click to toggle)
milksnake 0.1.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 164 kB
  • sloc: python: 422; ansic: 11; makefile: 7
file content (12 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
import os


def test_example_dev_run(virtualenv):
    pkg = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                       'res', 'minimal'))
    virtualenv.run('pip', ['install', '-v', '--editable', pkg])
    virtualenv.eval('''if 1:
        from example import test
        def execute():
            assert test() == (0.0, 0.0)
    ''')