Skip to content

Commit

Permalink
updated test_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofanindya committed Nov 19, 2024
1 parent d898aa3 commit ed3221c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from collections import namedtuple
from datetime import datetime
from math import pow
from pathlib import Path, _posix_flavour, _windows_flavour
from pathlib import Path
from time import sleep
from unittest.mock import patch

Expand Down Expand Up @@ -75,18 +75,6 @@
Stat = namedtuple("Stat", "st_size")


class MockedPath(Path):
"""Simple way to test Path methods.
Using mock did not make it.
"""

_flavour = _windows_flavour if WINDOWS else _posix_flavour

def resolve(self, *_, **__):
"""Raise a PermissionError."""
raise PermissionError("Boom!")


@pytest.mark.parametrize(
"size, digest_func, result",
[
Expand Down

0 comments on commit ed3221c

Please sign in to comment.