generated from BastiTee/python-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixing tests and circular dependencies
- Loading branch information
Showing
12 changed files
with
189 additions
and
158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
import __future__ # noqa: F401 | ||
|
||
from key_set.base import KeySetAll | ||
|
||
|
||
class TestAll: # noqa: D101 | ||
|
||
def test_represents(self) -> None: | ||
ks = KeySetAll() | ||
assert ks.represents_all() | ||
assert not ks.represents_none() | ||
assert not ks.represents_some() | ||
assert not ks.represents_all_except_some() | ||
|
||
def test_invert(self) -> None: | ||
ks = KeySetAll() | ||
actual = ks.invert() | ||
assert actual.represents_none() | ||
|
||
def test_elements(self) -> None: | ||
ks = KeySetAll() | ||
assert ks.elements() == set() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
import __future__ # noqa: F401 | ||
|
||
from key_set.base import KeySetAllExceptSome | ||
|
||
|
||
class TestAllExceptSome: # noqa: D101 | ||
|
||
def test_represents(self) -> None: | ||
ks = KeySetAllExceptSome({'a', 'b'}) | ||
assert ks.represents_all_except_some() | ||
assert not ks.represents_none() | ||
assert not ks.represents_all() | ||
assert not ks.represents_some() | ||
|
||
def test_invert(self) -> None: | ||
ks = KeySetAllExceptSome({'a', 'b'}) | ||
actual = ks.invert() | ||
assert actual.represents_some() | ||
assert actual.elements() == {'a', 'b'} | ||
|
||
def test_elements(self) -> None: | ||
ks = KeySetAllExceptSome({'a', 'b'}) | ||
assert ks.elements() == {'a', 'b'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
import __future__ # noqa: F401 | ||
|
||
from key_set.base import KeySetNone | ||
|
||
|
||
class TestNone: # noqa: D101 | ||
|
||
def test_represents(self) -> None: | ||
ks = KeySetNone() | ||
assert ks.represents_none() | ||
assert not ks.represents_all() | ||
assert not ks.represents_some() | ||
assert not ks.represents_all_except_some() | ||
|
||
def test_invert(self) -> None: | ||
ks = KeySetNone() | ||
actual = ks.invert() | ||
assert actual.represents_all() | ||
|
||
def test_elements(self) -> None: | ||
ks = KeySetNone() | ||
assert ks.elements() == set() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
import __future__ # noqa: F401 | ||
|
||
import key_set # noqa: F401 | ||
from key_set.base import KeySetSome | ||
|
||
|
||
class TestSome: # noqa: D101 | ||
|
||
def test_represents(self) -> None: | ||
ks = KeySetSome({'a', 'b'}) | ||
assert ks.represents_some() | ||
assert not ks.represents_none() | ||
assert not ks.represents_all() | ||
assert not ks.represents_all_except_some() | ||
|
||
def test_invert(self) -> None: | ||
ks = KeySetSome({'a', 'b'}) | ||
actual = ks.invert() | ||
assert actual.represents_all_except_some() | ||
assert actual.elements() == {'a', 'b'} | ||
|
||
def test_elements(self) -> None: | ||
ks = KeySetSome({'a', 'b'}) | ||
assert ks.elements() == {'a', 'b'} |
This file was deleted.
Oops, something went wrong.