Skip to content

Commit

Permalink
add pytest.mark.slow and improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetbutgul committed Jun 24, 2024
1 parent 886a939 commit e4a7c1a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 11 deletions.
15 changes: 15 additions & 0 deletions python/test/annotator/embeddings/open_ai_embeddings_test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
# Copyright 2017-2022 John Snow Labs
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import unittest
import pytest
from sparknlp.annotator import *
from sparknlp.base import *
from pyspark.sql import DataFrame
from pyspark.sql import SparkSession

@pytest.mark.slow
class OpenAIEmbeddingsTestCase(unittest.TestCase):
# Set your OpenAI API key to run unit test...
def setUp(self):
Expand Down
Loading

0 comments on commit e4a7c1a

Please sign in to comment.