Skip to content

Commit

Permalink
better imports for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Feb 3, 2024
1 parent 941b654 commit 5bd54fb
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ignore = ["C400", "C401"]

[project]
name = "fg-forge-updater"
version = "0.0.1"
version = "1.0.2"
readme = "README.md"
requires-python = ">=3.9"
license = { "file" = "LICENSE" }
Expand Down
4 changes: 2 additions & 2 deletions tests/forge_api/forge_item/test_forge_item_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pytest

from forge_api import ForgeItem
from ..test_forge_credentials import ForgeCredentialsFactory
from src.forge_api import ForgeItem
from tests.forge_api.test_forge_credentials import ForgeCredentialsFactory


def test_forge_item_creation() -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/forge_api/forge_item/test_forge_item_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webelement import WebElement

from forge_api import ForgeItem, ForgeURLs
from ..test_forge_credentials import ForgeCredentialsFactory
from src.forge_api import ForgeItem, ForgeURLs
from tests.forge_api.test_forge_credentials import ForgeCredentialsFactory

TEST_CALLS = [
(By.NAME, "vb_login_username"),
Expand Down
2 changes: 1 addition & 1 deletion tests/forge_api/test_forge_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from polyfactory.factories import DataclassFactory

from forge_api import ForgeCredentials
from src.forge_api import ForgeCredentials


class ForgeCredentialsFactory(DataclassFactory[ForgeCredentials]):
Expand Down
2 changes: 1 addition & 1 deletion tests/forge_api/test_forge_release_channels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from forge_api import ReleaseChannel
from src.forge_api import ReleaseChannel


def test_forge_urls() -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/forge_api/test_forge_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from forge_api import ForgeURLs
from src.forge_api import ForgeURLs


def test_forge_urls() -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/main/test_configure_headless_chrome.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from main import configure_headless_chrome
from src.main import configure_headless_chrome


def convert_args_to_dict(args):
Expand Down
2 changes: 1 addition & 1 deletion tests/main/test_construct_objects.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from pathlib import Path

from forge_api import ForgeItem, ForgeURLs
from forge_api import ForgeItem, ForgeURLs # note that we must omit the "src." here so that type checking works
from src.main import construct_objects


Expand Down
2 changes: 1 addition & 1 deletion tests/main/test_get_build_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from main import get_build_file
from src.main import get_build_file


def test_get_build_file() -> None:
Expand Down

0 comments on commit 5bd54fb

Please sign in to comment.