Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
9510ec44
Commit
9510ec44
authored
1 year ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
De-factorize test declaration
parent
2e7fea48
No related branches found
No related tags found
2 merge requests
!98
Draft: Newmaster
,
!96
Draft: Newmain
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jass/test/test_init_table.py
+7
-10
7 additions, 10 deletions
jass/test/test_init_table.py
with
7 additions
and
10 deletions
jass/test/test_init_table.py
+
7
−
10
View file @
9510ec44
...
@@ -12,7 +12,7 @@ from . import JassTestCase
...
@@ -12,7 +12,7 @@ from . import JassTestCase
class
TestInitTable
(
object
):
class
TestInitTable
(
object
):
test_folder
=
"
data_real
"
__test__
=
False
__test__
=
False
def
setUp
(
self
):
def
setUp
(
self
):
...
@@ -69,16 +69,13 @@ class TestInitTable(object):
...
@@ -69,16 +69,13 @@ class TestInitTable(object):
assert_frame_equal
(
self
.
expected_cov
,
self
.
result_cov
,
check_like
=
True
)
assert_frame_equal
(
self
.
expected_cov
,
self
.
result_cov
,
check_like
=
True
)
params
=
[(
"
nonans
"
,
"
data_real
"
,
True
),
(
"
withnans
"
,
"
data_real
"
,
False
)]
class
TestInitTableNoNans
(
TestInitTable
,
JassTestCase
):
computed_cov
=
True
class
TestInitTableWithNans
(
TestInitTable
,
JassTestCase
):
computed_cov
=
False
for
name
,
param
,
computed_cov
in
params
:
cls_name
=
"
TestInitTable_%s
"
%
(
name
,)
print
(
cls_name
)
globals
()[
cls_name
]
=
type
(
cls_name
,
(
TestInitTable
,
JassTestCase
),
{
"
test_folder
"
:
param
,
"
computed_cov
"
:
computed_cov
,
"
__test__
"
:
True
},
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
import
unittest
import
unittest
...
...
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