Skip to content

Commit

Permalink
Merge pull request #40 from alphatwirl/rename
Browse files Browse the repository at this point in the history
Rename `progressreport` to `progress_report`
  • Loading branch information
TaiSakuma authored May 20, 2024
2 parents e3e3ed9 + 4964129 commit 3c08f57
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 10 deletions.
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.
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

0 comments on commit 3c08f57

Please sign in to comment.