Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTADIRAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Tomas Bylund
CTADIRAC
Commits
0be1c044
Commit
0be1c044
authored
3 years ago
by
Luisa Arrabito
Browse files
Options
Downloads
Patches
Plain Diff
remove test files
parent
8dd12c66
No related branches found
Branches containing commit
Tags
2.0.13
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/CTADIRAC/bashrc
+0
-5
0 additions, 5 deletions
src/CTADIRAC/bashrc
src/CTADIRAC/tests/ProvenanceDB/test_provdb.py
+0
-50
0 additions, 50 deletions
src/CTADIRAC/tests/ProvenanceDB/test_provdb.py
with
0 additions
and
55 deletions
src/CTADIRAC/bashrc
deleted
100644 → 0
+
0
−
5
View file @
8dd12c66
export X509_CERT_DIR=/Users/arrabito/PycharmProjects/etc/grid-security/certificates
export X509_VOMS_DIR=${CONDA_PREFIX}/etc/grid-security/vomsdir
export X509_VOMSES=${CONDA_PREFIX}/etc/grid-security/vomses
export OPENSSL_CONF=/tmp
export SSL_CERT_DIR=/Users/arrabito/PycharmProjects/etc/grid-security/certificates
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/CTADIRAC/tests/ProvenanceDB/test_provdb.py
deleted
100644 → 0
+
0
−
50
View file @
8dd12c66
"""
ProvenanceDB test
December 8th 2021 - P. Maeght
"""
import
unittest
import
sys
from
unittest.mock
import
patch
from
CTADIRAC.DataManagementSystem.DB.ProvenanceDB
import
ProvenanceDB
class
TestProvDB
(
unittest
.
TestCase
):
"""
test class for ProvDB
"""
def
test_dictToObject
(
self
):
"""
Test _dictToObject
"""
def
mock_ProvenanceDB__init__
(
self
):
# No init need for _dictToObject
pass
with
patch
.
object
(
ProvenanceDB
,
"
__init__
"
,
mock_ProvenanceDB__init__
):
# New ProvenanceDB
pdb
=
ProvenanceDB
()
# Dummy fromDict dict
item
=
{
"
field1
"
:
"
OK
"
,
"
field2
"
:
"
OK
"
,
}
# Table Object
class
Table
:
field1
=
"
NOK
"
field2
=
"
NOK
"
# ret = pdb._dictToObject(Table, item)
pdb
.
_dictToObject
(
Table
,
item
)
# Table updated
assert
Table
.
field2
==
b
"
OK
"
if
__name__
==
'
__main__
'
:
unittest
.
main
()
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