Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Merge requests
!3
Herbert configuration and AllenNLP 1.2.0 update.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Herbert configuration and AllenNLP 1.2.0 update.
herberta-config
into
master
Overview
0
Commits
7
Pipelines
0
Changes
13
Merged
Mateusz Klimaszewski
requested to merge
herberta-config
into
master
4 years ago
Overview
0
Commits
7
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
version 2
version 2
1088be77
4 years ago
version 1
ea870679
4 years ago
master (base)
and
latest version
latest version
9841247c
7 commits,
4 years ago
version 2
1088be77
6 commits,
4 years ago
version 1
ea870679
5 commits,
4 years ago
Show latest version
1 file
+
0
−
12
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
tests/test_predict.py
+
0
−
12
Options
import
os
import
pathlib
import
shutil
import
unittest
from
unittest
import
mock
import
combo.data
as
data
import
combo.predict
as
predict
@@ -14,16 +12,6 @@ class PredictionTest(unittest.TestCase):
TESTS_ROOT
=
PROJECT_ROOT
/
"
tests
"
FIXTURES_ROOT
=
TESTS_ROOT
/
"
fixtures
"
def
setUp
(
self
)
->
None
:
def
_cleanup_archive_dir_without_logging
(
path
:
str
):
if
os
.
path
.
exists
(
path
):
shutil
.
rmtree
(
path
)
self
.
patcher
=
mock
.
patch
(
"
allennlp.models.archival._cleanup_archive_dir
"
,
_cleanup_archive_dir_without_logging
)
self
.
mock_cleanup_archive_dir
=
self
.
patcher
.
start
()
def
test_prediction_are_equal_given_the_same_input_in_different_form
(
self
):
# given
raw_sentence
=
"
Test.
"