FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phasecalculator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab has been upgraded. See what's new in the
Changelog
.
Show more breadcrumbs
Yusuf Hamied Department of Chemistry
Hunter Group
SSIPtools
SSIMPLEapps
phasecalculator
Commits
8979468a
Commit
8979468a
authored
5 years ago
by
Mark Driver
Browse files
Options
Downloads
Patches
Plain Diff
add classes tests.
parent
a3a1e9e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
phasecalculator/test/phasecalculatortests.py
+18
-0
18 additions, 0 deletions
phasecalculator/test/phasecalculatortests.py
with
18 additions
and
0 deletions
phasecalculator/test/phasecalculatortests.py
+
18
−
0
View file @
8979468a
...
...
@@ -31,6 +31,13 @@ from phasecalculator.test.runnerstest.phasetransferrunnertest import Phasetransf
from
phasecalculator.test.runnerstest.fgipanalysisrunnertest
import
FGIPAnalysisRunnerTestCase
from
phasecalculator.test.runnerstest.vleanalysisrunnertest
import
VLEAnalysisRunnerTestCase
from
phasecalculator.test.analysistest.fgipanalysistest
import
FGIPAnalysisTestCase
from
phasecalculator.test.classestest.moleculetest
import
MoleculeTestCase
from
phasecalculator.test.classestest.outputinformationtest
import
OutputInformationTestCase
from
phasecalculator.test.classestest.phasestest
import
PhasesTestCase
from
phasecalculator.test.classestest.phasetest
import
PhaseTestCase
from
phasecalculator.test.classestest.runtimeinformationtest
import
RuntimeInformationTestCase
from
phasecalculator.test.classestest.systemtest
import
SystemTestCase
from
phasecalculator.test.classestest.temperaturetest
import
TemperatureTestCase
logging
.
basicConfig
()
LOGGER
=
logging
.
getLogger
(
__name__
)
...
...
@@ -47,6 +54,14 @@ ANALYSIS_TEST_CASES = [FGIPAnalysisTestCase,]
MODULE_TEST_CASES
=
[]
CLASSES_TEST_CASES
=
[
MoleculeTestCase
,
OutputInformationTestCase
,
PhasesTestCase
,
PhaseTestCase
,
RuntimeInformationTestCase
,
SystemTestCase
,
TemperatureTestCase
]
def
create_test_suite
():
"""
Create a test suite with all the tests from the package.
...
...
@@ -71,6 +86,9 @@ def create_test_suite():
for
test_case
in
MODULE_TEST_CASES
:
LOGGER
.
debug
(
"
Adding %s
"
,
test_case
)
suite
.
addTests
(
loader
.
loadTestsFromTestCase
(
test_case
))
for
test_case
in
CLASSES_TEST_CASES
:
LOGGER
.
debug
(
"
Adding %s
"
,
test_case
)
suite
.
addTests
(
loader
.
loadTestsFromTestCase
(
test_case
))
return
suite
...
...
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