Skip to content

Commit

Permalink
πŸ› Fix release workflow (#981)
Browse files Browse the repository at this point in the history
* πŸ› Fix `pytest` import outside of tests

* πŸ”– Bump version
  • Loading branch information
trymzet authored Aug 22, 2024
1 parent 370efd6 commit b4368fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "viadot2"
version = "2.1.0"
version = "2.1.2"
description = "A simple data ingestion library to guide data flows from some places to other places."
authors = [
{ name = "acivitillo", email = "acivitillo@dyvenia.com" },
Expand Down
3 changes: 2 additions & 1 deletion src/viadot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import pandas as pd
import pyodbc
import pytest
import requests
from requests.adapters import HTTPAdapter
from requests.exceptions import ConnectionError, HTTPError, ReadTimeout, Timeout
Expand Down Expand Up @@ -829,6 +828,8 @@ def skip_test_on_missing_extra(source_name: str, extra: str) -> None:
source_name (str): The name of the source for which dependencies are missing.
extra (str): The name of the extra that is missing.
"""
import pytest

msg = f"Missing required extra '{extra}' for source '{source_name}'."
pytest.skip(
msg,
Expand Down

0 comments on commit b4368fe

Please sign in to comment.