Skip to content
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

TEST: add the docker fixture for test #55

Merged
merged 9 commits into from
Jul 24, 2023

Conversation

Revathyvenugopal162
Copy link
Collaborator

@Revathyvenugopal162 Revathyvenugopal162 commented Jul 24, 2023

Resolves #54

@github-actions github-actions bot added the testing Anything related to tests label Jul 24, 2023
@github-actions github-actions bot added the maintenance Package and maintenance related label Jul 24, 2023
@Revathyvenugopal162 Revathyvenugopal162 marked this pull request as ready for review July 24, 2023 10:39
@Revathyvenugopal162 Revathyvenugopal162 self-assigned this Jul 24, 2023

from ansys.tools.meilisearch.client import MeilisearchClient
from ansys.tools.meilisearch.scrapper import WebScraper


@pytest.fixture(scope="session")
def meilisearch_client():
def meilisearch_client(meilisearch_container):
meilisearch_client = MeilisearchClient(
meilisearch_host_url="http://localhost:7700", meilisearch_api_key="masterKey"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we declare the port through and environment variable or a fixture?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we can, i will adapt that.

@Revathyvenugopal162 Revathyvenugopal162 merged commit 6d5849c into main Jul 24, 2023
22 checks passed
@Revathyvenugopal162 Revathyvenugopal162 deleted the test/add-doccker-fixture branch July 24, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Package and maintenance related testing Anything related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable docker launch from pytest fixture
2 participants