Files
wger/extras/bench/test_Simple.py
Roland Geider 7ebdb0b4f0 noqa all the files to be skipped
Github's super linter seems to call each file individually. So instead of
flake --config foo . it does flake --config foo /path/to/file1.py and this
ignores the exclude values in the config.
2020-08-09 23:17:32 +02:00

37 lines
1.1 KiB
Python

# -*- coding: utf-8 -*-
# flake8: noqa
"""
Simple FunkLoad test
"""
import unittest
from random import random
from funkload.FunkLoadTestCase import FunkLoadTestCase
class Simple(FunkLoadTestCase):
"""
This test uses the configuration file Simple.conf.
"""
def setUp(self):
"""
Setting up test.
"""
self.server_url = self.conf_get('main', 'url')
def test_simple(self):
# The description should be set in the configuration file
server_url = self.server_url
# Exercises
self.get(server_url + '/en/exercise/overview/', description='Get exercise overview')
self.get(server_url + '/en/exercise/muscle/overview/', description='Get muscle overview')
self.get(server_url + '/de/exercise/79/view/', description='Get exercise page')
# Nutrition
self.get(server_url + '/de/nutrition/ingredient/overview/', description='Get ingredient overview')
self.get(server_url + '/de/nutrition/ingredient/8304/view/4-korn-waffeln/', description='Get ingredient page')
if __name__ in ('main', '__main__'):
unittest.main()