Skip to content

Commit 62a1242

Browse files
committed
Add depends method to tests
1 parent 05b94f8 commit 62a1242

11 files changed

+72
-0
lines changed

Diff for: tests/data/testframeworks/anotherothercategory.py

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4141
def remove(self):
4242
super().remove()
4343

44+
def depends(self):
45+
super().depends()
46+
4447
@property
4548
def is_installed(self):
4649
return False
@@ -58,6 +61,9 @@ def setup(self, install_path=None, auto_accept_license=False):
5861
def remove(self):
5962
super().remove()
6063

64+
def depends(self):
65+
super().depends()
66+
6167
@property
6268
def is_installed(self):
6369
return True

Diff for: tests/data/testframeworks/category_f.py

+9
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4141
def remove(self):
4242
super().remove()
4343

44+
def depends(self):
45+
super().depends()
46+
4447

4548
class FrameworkB(umake.frameworks.BaseFramework):
4649

@@ -55,6 +58,9 @@ def setup(self, install_path=None, auto_accept_license=False):
5558
def remove(self):
5659
super().remove()
5760

61+
def depends(self):
62+
super().depends()
63+
5864

5965
class FrameworkC(umake.frameworks.BaseFramework):
6066

@@ -67,3 +73,6 @@ def setup(self, install_path=None, auto_accept_license=False):
6773

6874
def remove(self):
6975
super().remove()
76+
77+
def depends(self):
78+
super().depends()

Diff for: tests/data/testframeworks/category_g.py

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4242
def remove(self):
4343
super().remove()
4444

45+
def depends(self):
46+
super().depends()
47+
4548

4649
class FrameworkB(umake.frameworks.BaseFramework):
4750

@@ -54,3 +57,6 @@ def setup(self, install_path=None, auto_accept_license=False):
5457

5558
def remove(self):
5659
super().remove()
60+
61+
def depends(self):
62+
super().depends()

Diff for: tests/data/testframeworks/framework_for_removal.py

+9
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4141
def remove(self):
4242
super().remove()
4343

44+
def depends(self):
45+
super().depends()
46+
4447

4548
class FrameworkRinstalled(umake.frameworks.BaseFramework):
4649

@@ -54,6 +57,9 @@ def setup(self, install_path=None, auto_accept_license=False):
5457
def remove(self):
5558
super().remove()
5659

60+
def depends(self):
61+
super().depends()
62+
5763
@property
5864
def is_installed(self):
5965
return True
@@ -72,6 +78,9 @@ def setup(self, install_path=None, auto_accept_license=False):
7278
def remove(self):
7379
super().remove()
7480

81+
def depends(self):
82+
super().depends()
83+
7584
@property
7685
def is_installed(self):
7786
return True

Diff for: tests/data/testframeworks/is_installable.py

+9
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4141
def remove(self):
4242
super().remove()
4343

44+
def depends(self):
45+
super().depends()
46+
4447
@property
4548
def is_installable(self):
4649
return super().is_installable
@@ -60,6 +63,9 @@ def setup(self, install_path=None, auto_accept_license=False):
6063
def remove(self):
6164
super().remove()
6265

66+
def depends(self):
67+
super().depends()
68+
6369
@property
6470
def is_installable(self):
6571
"""overridden to say True"""
@@ -79,6 +85,9 @@ def setup(self, install_path=None, auto_accept_license=False):
7985
def remove(self):
8086
super().remove()
8187

88+
def depends(self):
89+
super().depends()
90+
8291
@property
8392
def is_installable(self):
8493
"""overridden to say False"""

Diff for: tests/data/testframeworks/oneframeworkcategory.py

+3
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ def setup(self, install_path=None, auto_accept_license=False):
4040

4141
def remove(self):
4242
super().remove()
43+
44+
def depends(self):
45+
super().depends()

Diff for: tests/data/testframeworks/othercategory.py

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4141
def remove(self):
4242
super().remove()
4343

44+
def depends(self):
45+
super().depends()
46+
4447
@property
4548
def is_installed(self):
4649
return True
@@ -58,6 +61,9 @@ def setup(self, install_path=None, auto_accept_license=False):
5861
def remove(self):
5962
super().remove()
6063

64+
def depends(self):
65+
super().depends()
66+
6167
@property
6268
def is_installed(self):
6369
return True

Diff for: tests/data/testframeworks/restrictions.py

+9
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4141
def remove(self):
4242
super().remove()
4343

44+
def depends(self):
45+
super().depends()
46+
4447

4548
class FrameworkB(umake.frameworks.BaseFramework):
4649

@@ -54,6 +57,9 @@ def setup(self, install_path=None, auto_accept_license=False):
5457
def remove(self):
5558
super().remove()
5659

60+
def depends(self):
61+
super().depends()
62+
5763

5864
class FrameworkC(umake.frameworks.BaseFramework):
5965

@@ -67,3 +73,6 @@ def setup(self, install_path=None, auto_accept_license=False):
6773

6874
def remove(self):
6975
super().remove()
76+
77+
def depends(self):
78+
super().depends()

Diff for: tests/data/testframeworks/uninstantiableframework.py

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4040
def remove(self):
4141
super().remove()
4242

43+
def depends(self):
44+
super().depends()
45+
4346

4447
class InheritedFromUninstantiable(Uninstantiable):
4548

Diff for: tests/data/testframeworks/withcategory.py

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def setup(self, install_path=None, auto_accept_license=False):
4141
def remove(self):
4242
super().remove()
4343

44+
def depends(self):
45+
super().depends()
46+
4447

4548
class FrameworkB(umake.frameworks.BaseFramework):
4649

@@ -53,3 +56,6 @@ def setup(self, install_path=None, auto_accept_license=False):
5356

5457
def remove(self):
5558
super().remove()
59+
60+
def depends(self):
61+
super().depends()

Diff for: tests/data/testframeworks/withoutcategory.py

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def setup(self, install_path=None, auto_accept_license=False):
3535
def remove(self):
3636
super().remove()
3737

38+
def depends(self):
39+
super().depends()
40+
3841

3942
class FrameworkFreeB(umake.frameworks.BaseFramework):
4043

@@ -47,3 +50,6 @@ def setup(self, install_path=None, auto_accept_license=False):
4750

4851
def remove(self):
4952
super().remove()
53+
54+
def depends(self):
55+
super().depends()

0 commit comments

Comments
 (0)