Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
ES Subset Generator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ChEMBL
C
ChEMBL
Main Web Interface
ES Subset Generator
Commits
67b619ba
Commit
67b619ba
authored
Aug 18, 2020
by
David Mendez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo
parent
40fe5f62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/es_subset_generator/test/data/sample_mapping_1.json
app/es_subset_generator/test/data/sample_mapping_1.json
+0
-0
app/es_subset_generator/test/test_mappings_handling.py
app/es_subset_generator/test/test_mappings_handling.py
+5
-5
No files found.
app/es_subset_generator/test/data/sample_mapping_.json
→
app/es_subset_generator/test/data/sample_mapping_
1
.json
View file @
67b619ba
File moved
app/es_subset_generator/test/test_mappings_handling.py
View file @
67b619ba
...
...
@@ -17,7 +17,7 @@ class TestMappingsHandling(unittest.TestCase):
"""
Tests that given a mapping from ES it produces a mapping to put to the subset index
"""
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_.json'
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_
1
.json'
with
open
(
sample_mapping_path
,
'rt'
)
as
sample_mapping_file
:
mapping_from_base_index
=
json
.
load
(
sample_mapping_file
)
...
...
@@ -30,7 +30,7 @@ class TestMappingsHandling(unittest.TestCase):
Test that it locates the config of a property
"""
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_.json'
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_
1
.json'
with
open
(
sample_mapping_path
,
'rt'
)
as
sample_mapping_file
:
mapping_from_base_index
=
json
.
load
(
sample_mapping_file
)
...
...
@@ -59,7 +59,7 @@ class TestMappingsHandling(unittest.TestCase):
"""
Tests that when locating the config of a property that does not exist it raises an error
"""
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_.json'
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_
1
.json'
with
open
(
sample_mapping_path
,
'rt'
)
as
sample_mapping_file
:
with
self
.
assertRaises
(
mappings
.
MappingsHandlingError
,
...
...
@@ -75,7 +75,7 @@ class TestMappingsHandling(unittest.TestCase):
in ES
"""
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_.json'
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_
1
.json'
with
open
(
sample_mapping_path
,
'rt'
)
as
sample_mapping_file
:
mapping_from_base_index
=
json
.
load
(
sample_mapping_file
)
...
...
@@ -94,7 +94,7 @@ class TestMappingsHandling(unittest.TestCase):
Gets the mapping of a property when the property is nested
"""
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_.json'
sample_mapping_path
=
'app/es_subset_generator/test/data/sample_mapping_
1
.json'
with
open
(
sample_mapping_path
,
'rt'
)
as
sample_mapping_file
:
mapping_from_base_index
=
json
.
load
(
sample_mapping_file
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment