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

Rename progressreport to progress_report #40

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion atpbar/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from collections.abc import Iterator

from .machine import StateMachine
from .progressreport import ProgressReporter
from .progress_report import ProgressReporter

_machine = StateMachine()

Expand Down
2 changes: 1 addition & 1 deletion atpbar/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from threading import Lock, current_thread, main_thread

from .presentation import create_presentation
from .progressreport import ProgressReporter, ProgressReportPickup, Report
from .progress_report import ProgressReporter, ProgressReportPickup, Report
from .stream import StreamQueue, StreamRedirection, register_stream_queue


Expand Down
2 changes: 1 addition & 1 deletion atpbar/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Generic, Optional, TypeVar

from .funcs import fetch_reporter
from .progressreport import Report
from .progress_report import Report

T = TypeVar('T')

Expand Down
2 changes: 1 addition & 1 deletion atpbar/presentation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import TextIO
from uuid import UUID

from atpbar.progressreport import Report
from atpbar.progress_report import Report


class Presentation(ABC):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytest

from atpbar.progressreport.pickup import ProgressReportPickup
from atpbar.progress_report.pickup import ProgressReportPickup


class TestStart:
Expand Down Expand Up @@ -130,7 +130,7 @@ def mock_short_sleep(self, pickup, monkeypatch):
def mock_time(self, monkeypatch):
ret = mock.Mock()
ret.time.return_value = 1000.0
from atpbar.progressreport import pickup as m
from atpbar.progress_report import pickup as m

monkeypatch.setattr(m, "time", ret)
return ret
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from atpbar.progressreport.complement import ProgressReportComplementer
from atpbar.progress_report.complement import ProgressReportComplementer


@pytest.fixture()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import unittest.mock as mock

from atpbar.progressreport.reporter import ProgressReporter
from atpbar.progress_report.reporter import ProgressReporter


@pytest.fixture()
Expand All @@ -15,7 +15,7 @@ def mock_queue():
@pytest.fixture()
def mock_time(monkeypatch):
ret = mock.Mock()
module = sys.modules["atpbar.progressreport.reporter"]
module = sys.modules["atpbar.progress_report.reporter"]
monkeypatch.setattr(module, "time", ret)
return ret

Expand Down
2 changes: 1 addition & 1 deletion tests/scenarios/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ def machine(monkeypatch):

@pytest.fixture(autouse=True)
def reporter_interval(monkeypatch):
module = sys.modules["atpbar.progressreport.reporter"]
module = sys.modules["atpbar.progress_report.reporter"]
monkeypatch.setattr(module, "DEFAULT_INTERVAL", 0)
yield
Loading