Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
a3a4bd92
Commit
a3a4bd92
authored
Mar 11, 2011
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make TestCases_in_subdir call superclass init method
parent
8ed5d5d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/tests/__init__.py
+2
-2
No files found.
fs/tests/__init__.py
View file @
a3a4bd92
...
@@ -921,9 +921,10 @@ class ThreadingTestCases(object):
...
@@ -921,9 +921,10 @@ class ThreadingTestCases(object):
pass
pass
def
test_cases_in_separate_dirs
(
self
):
def
test_cases_in_separate_dirs
(
self
):
class
TestCases_in_subdir
(
self
.
__class__
):
class
TestCases_in_subdir
(
self
.
__class__
,
unittest
.
TestCase
):
"""Run all testcases against a subdir of self.fs"""
"""Run all testcases against a subdir of self.fs"""
def
__init__
(
this
,
subdir
):
def
__init__
(
this
,
subdir
):
super
(
TestCases_in_subdir
,
this
)
.
__init__
(
"test_listdir"
)
this
.
subdir
=
subdir
this
.
subdir
=
subdir
for
meth
in
dir
(
this
):
for
meth
in
dir
(
this
):
if
not
meth
.
startswith
(
"test_"
):
if
not
meth
.
startswith
(
"test_"
):
...
@@ -939,7 +940,6 @@ class ThreadingTestCases(object):
...
@@ -939,7 +940,6 @@ class ThreadingTestCases(object):
self
.
fs
.
makedir
(
subdir
)
self
.
fs
.
makedir
(
subdir
)
self
.
_yield
()
self
.
_yield
()
getattr
(
this
,
meth
)()
getattr
(
this
,
meth
)()
super
(
this
.
__class__
,
this
)
@property
@property
def
fs
(
this
):
def
fs
(
this
):
return
self
.
fs
.
opendir
(
this
.
subdir
)
return
self
.
fs
.
opendir
(
this
.
subdir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment