Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions doccano_client/beta/tests/test_full_integration_tests.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
from unittest import TestCase

import pytest
from dotenv import load_dotenv

from ..client import DoccanoClient
from ..models import Example, Project, SpanType
import os

DOCCANO_ENDPOINT = "http://localhost" # TODO: Make this a pytest parameter or ENV variable
DOCCANO_USER = "admin" # TODO: Make this a pytest parameter or ENV variable
DOCCANO_PASS = "password" # TODO: Make this a pytest parameter or ENV variable
load_dotenv()

DOCCANO_ENDPOINT = os.getenv("DOCCANO_ENDPOINT", "http://localhost")
DOCCANO_USER = os.getenv("DOCCANO_USER", "admin")
DOCCANO_PASS = os.getenv("DOCCANO_PASS", "password")


@pytest.mark.localintegrationtest
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ mkdocs-material = "^8.5.3"
mkdocs-same-dir = "^0.1.1"
vcrpy = "^4.2.1"
mkdocstrings = {extras = ["python", "crystal"], version = "^0.19.0"}
python-dotenv = "^1.0.0"

[tool.poetry.extras]
spacy = ["spacy", "spacy-partial-tagger", "tqdm"]
Expand Down