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
!4
Documentation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Documentation
documentation
into
develop
Overview
0
Commits
12
Pipelines
0
Changes
17
Merged
Mateusz Klimaszewski
requested to merge
documentation
into
develop
4 years ago
Overview
0
Commits
12
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
90d7c1ef
Prev
Next
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
90d7c1ef
Remove unused patching in test.
· 90d7c1ef
Mateusz Klimaszewski
authored
4 years ago
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.
"