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
Commits
9841247c
Commit
9841247c
authored
4 years ago
by
Mateusz Klimaszewski
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused patching in test.
(cherry picked from commit 825c151fffb188aa9fe96f6092840cfda4334997)
parent
1088be77
1 merge request
!3
Herbert configuration and AllenNLP 1.2.0 update.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_predict.py
+0
-12
0 additions, 12 deletions
tests/test_predict.py
with
0 additions
and
12 deletions
tests/test_predict.py
+
0
−
12
View file @
9841247c
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.
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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