Skip to content

Commit

Permalink
fix: fix unittests, undo skip
Browse files Browse the repository at this point in the history
  • Loading branch information
qaldak committed May 1, 2024
1 parent b29e8e1 commit 7ba2cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tests/container/test_backup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import unittest
from unittest import TestCase
from unittest.mock import patch
Expand All @@ -9,7 +8,7 @@


class MockContainer(TestCase):
@unittest.skipIf(os.getenv("GITHUB_ACTIONS") == "true", "Skip on Github")
@unittest.expectedFailure
def __init__(self) -> None:
super().__init__()
self.name = "foo_bar"
Expand All @@ -20,7 +19,7 @@ def __init__(self) -> None:


class MockBackupDir(TestCase):
@unittest.skipIf(os.getenv("GITHUB_ACTIONS") == "true", "Skip on Github")
@unittest.expectedFailure
def __init__(self) -> None:
super().__init__()
self.path = "/foo/backup"
Expand Down
3 changes: 1 addition & 2 deletions tests/notification/test_builder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import unittest
from unittest import TestCase
from unittest.mock import patch
Expand All @@ -8,7 +7,7 @@


class MockContainer(TestCase):
@unittest.skipIf(os.getenv("GITHUB_ACTIONS") == "true", "Skip on Github")
@unittest.expectedFailure
def __init__(self) -> None:
super().__init__()
self.name = "foo_bar"
Expand Down

0 comments on commit 7ba2cac

Please sign in to comment.