File: example9.py

package info (click to toggle)
python-molotov 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,264 kB
  • sloc: python: 4,121; makefile: 60
file content (12 lines) | stat: -rw-r--r-- 252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
"""
Molotov scripts can import modules from the same dir
"""
from mylib import get_url

from molotov import scenario


@scenario(weight=1)
async def my_scenario(session):
    async with session.get(get_url()) as resp:
        assert resp.status == 200