8000 test: remove folder after test by maximilianwerk · Pull Request #2162 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: remove folder after test #2162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2021
Merged
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
13 changes: 12 additions & 1 deletion tests/integration/crud/simple/test_crud_readme.py
4191
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import numpy as np
import shutil
import os
import pytest

from jina import Flow, Document

from tests import validate_callback


def test_crud_in_readme(mocker):
@pytest.fixture
def clean_me_up_mock():
yield
to_be_deleted_folder = 'simple_indexer'
if os.path.isdir(to_be_deleted_folder):
shutil.rmtree(to_be_deleted_folder)


def test_crud_in_readme(mocker, clean_me_up_mock):
docs = [
Document(
id='🐲',
Expand Down
0