Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
e7bb7270
Commit
e7bb7270
authored
4 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused directories
parent
411724b3
No related branches found
No related tags found
No related merge requests found
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
foofolder/test/Foo_test.py
+0
-94
0 additions, 94 deletions
foofolder/test/Foo_test.py
foofolder/test/__init__.py
+0
-0
0 additions, 0 deletions
foofolder/test/__init__.py
with
0 additions
and
94 deletions
foofolder/test/Foo_test.py
deleted
100644 → 0
+
0
−
94
View file @
411724b3
#########################################################################################
# -*- coding: utf-8 -*-
#
# This file is part of the Foo project
#
#
#
# Distributed under the terms of the APACHE license.
# See LICENSE.txt for more info.
#########################################################################################
"""
Contain the tests for the foo project.
"""
# Path
import
sys
import
os
path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
os
.
pardir
)
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
path
))
# Imports
import
pytest
from
mock
import
MagicMock
from
PyTango
import
DevState
# PROTECTED REGION ID(Foo.test_additional_imports) ENABLED START #
# PROTECTED REGION END # // Foo.test_additional_imports
# Device test case
@pytest.mark.usefixtures
(
"
tango_context
"
,
"
initialize_device
"
)
# PROTECTED REGION ID(Foo.test_Foo_decorators) ENABLED START #
# PROTECTED REGION END # // Foo.test_Foo_decorators
class
TestFoo
(
object
):
"""
Test case for packet generation.
"""
properties
=
{
}
@classmethod
def
mocking
(
cls
):
"""
Mock external libraries.
"""
# Example : Mock numpy
# cls.numpy = Foo.numpy = MagicMock()
# PROTECTED REGION ID(Foo.test_mocking) ENABLED START #
# PROTECTED REGION END # // Foo.test_mocking
def
test_properties
(
self
,
tango_context
):
# Test the properties
# PROTECTED REGION ID(Foo.test_properties) ENABLED START #
# PROTECTED REGION END # // Foo.test_properties
pass
# PROTECTED REGION ID(Foo.test_State_decorators) ENABLED START #
# PROTECTED REGION END # // Foo.test_State_decorators
def
test_State
(
self
,
tango_context
):
"""
Test for State
"""
# PROTECTED REGION ID(Foo.test_State) ENABLED START #
assert
tango_context
.
device
.
State
()
==
DevState
.
UNKNOWN
# PROTECTED REGION END # // Foo.test_State
# PROTECTED REGION ID(Foo.test_Status_decorators) ENABLED START #
# PROTECTED REGION END # // Foo.test_Status_decorators
def
test_Status
(
self
,
tango_context
):
"""
Test for Status
"""
# PROTECTED REGION ID(Foo.test_Status) ENABLED START #
assert
tango_context
.
device
.
Status
()
==
"
The device is in UNKNOWN state.
"
# PROTECTED REGION END # // Foo.test_Status
# PROTECTED REGION ID(Foo.test_On_decorators) ENABLED START #
# PROTECTED REGION END # // Foo.test_On_decorators
def
test_On
(
self
,
tango_context
):
"""
Test for On
"""
# PROTECTED REGION ID(Foo.test_On) ENABLED START #
assert
tango_context
.
device
.
On
()
==
None
# PROTECTED REGION END # // Foo.test_On
# PROTECTED REGION ID(Foo.test_Off_decorators) ENABLED START #
# PROTECTED REGION END # // Foo.test_Off_decorators
def
test_Off
(
self
,
tango_context
):
"""
Test for Off
"""
# PROTECTED REGION ID(Foo.test_Off) ENABLED START #
assert
tango_context
.
device
.
Off
()
==
None
# PROTECTED REGION END # // Foo.test_Off
# PROTECTED REGION ID(Foo.test_Fault_decorators) ENABLED START #
# PROTECTED REGION END # // Foo.test_Fault_decorators
def
test_Fault
(
self
,
tango_context
):
"""
Test for Fault
"""
# PROTECTED REGION ID(Foo.test_Fault) ENABLED START #
assert
tango_context
.
device
.
Fault
()
==
None
# PROTECTED REGION END # // Foo.test_Fault
This diff is collapsed.
Click to expand it.
foofolder/test/__init__.py
deleted
100644 → 0
+
0
−
0
View file @
411724b3
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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