0001-DRAFT-try-playwright-tests-62892.patch
setup.py | ||
---|---|---|
1 |
#! /usr/bin/env python |
|
2 | ||
3 |
from setuptools import setup |
|
4 | ||
5 |
setup( |
|
6 |
name='publik-devinst', |
|
7 |
version='0.0', |
|
8 |
description='Publik DevInst', |
|
9 |
author='Emmanuel Cazenave', |
|
10 |
author_email='ecazenave@entrouvert.com', |
|
11 |
url='https://dev.entrouvert.org/projects/publik-devinst/', |
|
12 |
classifiers=[ |
|
13 |
'Development Status :: 4 - Beta', |
|
14 |
'Environment :: Web Environment', |
|
15 |
'Framework :: Django', |
|
16 |
'Intended Audience :: Developers', |
|
17 |
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', |
|
18 |
'Operating System :: OS Independent', |
|
19 |
'Programming Language :: Python', |
|
20 |
'Programming Language :: Python :: 3', |
|
21 |
], |
|
22 |
install_requires=[], |
|
23 |
zip_safe=False, |
|
24 |
cmdclass={}, |
|
25 |
) |
tests/test_homepage.py | ||
---|---|---|
1 |
def test_homepage(page): |
|
2 |
page.goto("https://combo.dev.publik.love/") |
|
3 |
assert page.inner_text('h1') == 'Dev Publik Love' |
tox.ini | ||
---|---|---|
1 |
[tox] |
|
2 |
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/publik-devinst/{env:BRANCH_NAME:} |
|
3 | ||
4 |
[testenv] |
|
5 |
setenv = |
|
6 |
TOX_WORK_DIR={toxworkdir} |
|
7 |
passenv = |
|
8 |
BRANCH_NAME |
|
9 |
deps = |
|
10 |
playwright |
|
11 |
pytest-playwright |
|
12 |
commands = |
|
13 |
playwright install firefox |
|
14 |
playwright install chromium |
|
15 |
py.test --browser firefox --browser chromium {posargs: --junitxml=junit-{envname}.xml tests/} |
|
0 |
- |