Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
punctuator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
punctuator
Commits
e2ca6f80
Commit
e2ca6f80
authored
Jul 31, 2023
by
Paweł Walkowiak
Browse files
Options
Downloads
Patches
Plain Diff
Update lang path
parent
c7b861d9
No related branches found
No related tags found
1 merge request
!20
Tests
Pipeline
#12271
passed
Jul 31, 2023
Stage: check_style
Stage: tests
Stage: pages
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/conftest.py
+1
-1
1 addition, 1 deletion
tests/conftest.py
tests/test.py
+0
-8
0 additions, 8 deletions
tests/test.py
with
1 addition
and
9 deletions
tests/conftest.py
+
1
−
1
View file @
e2ca6f80
...
...
@@ -52,7 +52,7 @@ async def test_text():
@pytest.fixture
(
scope
=
"
session
"
)
async
def
language_tool_location
():
return
"
/
Library/Frameworks/Python.framework/Versions/3.10
/lib/python3.
10
/site-packages
"
return
"
/
builds/nlpworkers/punctuator/.tox/pytest
/lib/python3.
8
/site-packages
/language_tool_python
"
@pytest.fixture
(
scope
=
"
session
"
)
...
...
This diff is collapsed.
Click to expand it.
tests/test.py
+
0
−
8
View file @
e2ca6f80
...
...
@@ -3,14 +3,6 @@ from src.language_tool import LanguageToolFixer
from
filecmp
import
cmp
import
pytest
# LANGUAGE_TOOL_LOCATION = "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages"
# "/builds/nlpworkers/punctuator/.tox/pytest/lib/python3.8/site-packages/language_tool_python"
# TEST_FILES_TEMPLATE = {
# 'input': './example_texts/input/',
# 'output': './example_texts/output/',
# 'expected': './example_texts/expected/',
# }
def
language_process_test
(
worker
,
input_dir
,
output_dir
,
expected_dir
,
language
=
'
pl
'
):
worker
.
process
(
f
"
{
input_dir
}{
language
}
.txt
"
,
{
"
language
"
:
language
},
f
"
{
output_dir
}{
language
}
.txt
"
)
...
...
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