Skip to content

Commit 4a86656

Browse files
committed
refactor(tests): loadfixture -> load_fixture
1 parent 40d6d56 commit 4a86656

File tree

14 files changed

+69
-69
lines changed

14 files changed

+69
-69
lines changed

tests/fixtures/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
FIXTURE_PATH = pathlib.Path(__file__).parent
44

55

6-
def loadfixture(_file): # return fixture data, relative to __file__
6+
def load_fixture(_file): # return fixture data, relative to __file__
77
return open(FIXTURE_PATH / _file).read()
88

99

tests/fixtures/config/expand2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import os
22

3-
from .._util import loadfixture
3+
from .._util import load_fixture
44

5-
unexpanded_yaml = loadfixture("config/expand2-unexpanded.yaml")
6-
expanded_yaml = loadfixture("config/expand2-expanded.yaml").format(
5+
unexpanded_yaml = load_fixture("config/expand2-unexpanded.yaml")
6+
expanded_yaml = load_fixture("config/expand2-expanded.yaml").format(
77
HOME=os.path.expanduser("~")
88
)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .._util import loadfixture
1+
from .._util import load_fixture
22

3-
before = loadfixture("config/shell_command_before_session.yaml")
4-
expected = loadfixture("config/shell_command_before_session-expected.yaml")
3+
before = load_fixture("config/shell_command_before_session.yaml")
4+
expected = load_fixture("config/shell_command_before_session-expected.yaml")

tests/fixtures/config_teamocil/layouts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .._util import loadfixture
1+
from .._util import load_fixture
22

3-
teamocil_yaml = loadfixture("config_teamocil/layouts.yaml")
3+
teamocil_yaml = load_fixture("config_teamocil/layouts.yaml")
44

55
teamocil_dict = {
66
"two-windows": {

tests/fixtures/config_teamocil/test1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .._util import loadfixture
1+
from .._util import load_fixture
22

3-
teamocil_yaml = loadfixture("config_teamocil/test1.yaml")
3+
teamocil_yaml = load_fixture("config_teamocil/test1.yaml")
44
teamocil_conf = {
55
"windows": [
66
{

tests/fixtures/config_teamocil/test2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .._util import loadfixture
1+
from .._util import load_fixture
22

3-
teamocil_yaml = loadfixture("config_teamocil/test2.yaml")
3+
teamocil_yaml = load_fixture("config_teamocil/test2.yaml")
44
teamocil_dict = {
55
"windows": [
66
{

tests/fixtures/config_teamocil/test3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .._util import loadfixture
1+
from .._util import load_fixture
22

3-
teamocil_yaml = loadfixture("config_teamocil/test3.yaml")
3+
teamocil_yaml = load_fixture("config_teamocil/test3.yaml")
44

55
teamocil_dict = {
66
"windows": [

tests/fixtures/config_teamocil/test4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .._util import loadfixture
1+
from .._util import load_fixture
22

3-
teamocil_yaml = loadfixture("config_teamocil/test4.yaml")
3+
teamocil_yaml = load_fixture("config_teamocil/test4.yaml")
44

55
teamocil_dict = {
66
"windows": [

tests/fixtures/config_tmuxinator/test1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .._util import loadfixture
1+
from .._util import load_fixture
22

3-
tmuxinator_yaml = loadfixture("config_tmuxinator/test1.yaml")
3+
tmuxinator_yaml = load_fixture("config_tmuxinator/test1.yaml")
44
tmuxinator_dict = {
55
"windows": [
66
{"editor": {"layout": "main-vertical", "panes": ["vim", "guard"]}},

tests/fixtures/config_tmuxinator/test2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .._util import loadfixture
1+
from .._util import load_fixture
22

3-
tmuxinator_yaml = loadfixture("config_tmuxinator/test2.yaml")
3+
tmuxinator_yaml = load_fixture("config_tmuxinator/test2.yaml")
44

55
tmuxinator_dict = {
66
"project_name": "sample",

0 commit comments

Comments
 (0)