-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#73 - Refactoring code and unit tests WIP
- Loading branch information
Bruce Fenske
committed
Aug 6, 2022
1 parent
4942c55
commit 0cd1751
Showing
9 changed files
with
1,119 additions
and
1,304 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,19 +1 @@ | ||
_empty = [] | ||
_simple = [1, 2, 3] | ||
_complex = [{"value": 1}, {"value": 2}, {"value": 3}] | ||
|
||
_locations = [ | ||
("Scotland", "Edinburgh", "Branch1", 20000), | ||
("Scotland", "Glasgow", "Branch1", 12500), | ||
("Scotland", "Glasgow", "Branch2", 12000), | ||
("Wales", "Cardiff", "Branch1", 29700), | ||
("Wales", "Cardiff", "Branch2", 30000), | ||
("Wales", "Bangor", "Branch1", 12800), | ||
("England", "London", "Branch1", 90000), | ||
("England", "London", "Branch2", 80000), | ||
("England", "London", "Branch3", 70000), | ||
("England", "Manchester", "Branch1", 45600), | ||
("England", "Manchester", "Branch2", 50000), | ||
("England", "Liverpool", "Branch1", 29700), | ||
("England", "Liverpool", "Branch2", 25000), | ||
] |
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,42 @@ | ||
from py_linq import Enumerable | ||
import pytest | ||
|
||
_simple = [1, 2, 3] | ||
_complex = [{"value": 1}, {"value": 2}, {"value": 3}] | ||
|
||
_locations = [ | ||
("Scotland", "Edinburgh", "Branch1", 20000), | ||
("Scotland", "Glasgow", "Branch1", 12500), | ||
("Scotland", "Glasgow", "Branch2", 12000), | ||
("Wales", "Cardiff", "Branch1", 29700), | ||
("Wales", "Cardiff", "Branch2", 30000), | ||
("Wales", "Bangor", "Branch1", 12800), | ||
("England", "London", "Branch1", 90000), | ||
("England", "London", "Branch2", 80000), | ||
("England", "London", "Branch3", 70000), | ||
("England", "Manchester", "Branch1", 45600), | ||
("England", "Manchester", "Branch2", 50000), | ||
("England", "Liverpool", "Branch1", 29700), | ||
("England", "Liverpool", "Branch2", 25000), | ||
] | ||
|
||
@pytest.fixture | ||
def empty() -> Enumerable: | ||
return Enumerable([]) | ||
|
||
|
||
@pytest.fixture | ||
def simple() -> Enumerable: | ||
return Enumerable(_simple) | ||
|
||
|
||
@pytest.fixture | ||
def complex() -> Enumerable: | ||
return Enumerable(_complex) | ||
|
||
|
||
@pytest.fixture | ||
def locations() -> Enumerable: | ||
return Enumerable(_locations) | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.