Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Tryton
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
Tryton
Commits
6398b9fb
Commit
6398b9fb
authored
3 years ago
by
Cédric Krier
Browse files
Options
Downloads
Patches
Plain Diff
Replace test setuptools command by unittest discover
issue9215 review389851002
parent
7d994ce6
No related branches found
Branches containing commit
No related tags found
1 merge request
!114
Return an empty list when the treeview has no selection
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
setup.py
+3
-3
3 additions, 3 deletions
setup.py
tests/__init__.py
+0
-7
0 additions, 7 deletions
tests/__init__.py
tests/test_module.py
+1
-8
1 addition, 8 deletions
tests/test_module.py
tox.ini
+2
-1
2 additions, 1 deletion
tox.ini
with
6 additions
and
19 deletions
setup.py
+
3
−
3
View file @
6398b9fb
...
...
@@ -135,9 +135,12 @@
license
=
'
GPL-3
'
,
python_requires
=
'
>=3.7
'
,
install_requires
=
requires
,
extras_require
=
{
'
test
'
:
tests_require
,
},
dependency_links
=
dependency_links
,
zip_safe
=
False
,
entry_points
=
"""
[trytond.modules]
account_eu = trytond.modules.account_eu
"""
,
...
...
@@ -138,10 +141,7 @@
dependency_links
=
dependency_links
,
zip_safe
=
False
,
entry_points
=
"""
[trytond.modules]
account_eu = trytond.modules.account_eu
"""
,
test_suite
=
'
tests
'
,
test_loader
=
'
trytond.test_loader:Loader
'
,
tests_require
=
tests_require
,
)
This diff is collapsed.
Click to expand it.
tests/__init__.py
+
0
−
7
View file @
6398b9fb
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
try
:
from
trytond.modules.account_eu.tests.test_account_eu
import
suite
except
ImportError
:
from
.test_account_eu
import
suite
__all__
=
[
'
suite
'
]
This diff is collapsed.
Click to expand it.
tests/test_
account_eu
.py
→
tests/test_
module
.py
+
1
−
8
View file @
6398b9fb
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import
unittest
from
trytond.modules.company.tests
import
CompanyTestMixin
from
trytond.tests.test_tryton
import
ModuleTestCase
...
...
@@ -6,6 +4,5 @@
from
trytond.modules.company.tests
import
CompanyTestMixin
from
trytond.tests.test_tryton
import
ModuleTestCase
from
trytond.tests.test_tryton
import
suite
as
test_suite
class
AccountEuTestCase
(
CompanyTestMixin
,
ModuleTestCase
):
...
...
@@ -13,8 +10,4 @@
module
=
'
account_eu
'
def
suite
():
suite
=
test_suite
()
suite
.
addTests
(
unittest
.
TestLoader
().
loadTestsFromTestCase
(
AccountEuTestCase
))
return
suite
del
ModuleTestCase
This diff is collapsed.
Click to expand it.
tox.ini
+
2
−
1
View file @
6398b9fb
...
...
@@ -2,4 +2,5 @@
envlist
=
{py37,py38,py39,py310}-{sqlite,postgresql}
[testenv]
extras
=
test
commands
=
...
...
@@ -5,5 +6,5 @@
commands
=
coverage
run
--include
=
.*/account_eu/*
setup.py
test
coverage
run
--include
=
.*/account_eu/*
-m unittest discover -s
test
s
coverage
report
--include
=
.*/account_eu/* --omit=*/tests/*
deps
=
coverage
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment