-
-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Labels
docsIssues related to documentationIssues related to documentation
Milestone
Description
The Implementing Filesystems -> Testing Filesystems section has a minor error in the example:
from fs.test import FSTestCases
class TestMyFS(FSTestCases):
def make_fs(self):
# Return an instance of your FS object here
return MyFS()FSTestCases is a plain class without anything more than object as a base class, yet it's methods expect unittest.TestCase to be a base, so the above won't work. It's missing an additional base class:
import unittest
from fs.test import FSTestCases
class TestMyFS(FSTestCases, unittest.TestCase):
def make_fs(self):
# Return an instance of your FS object here
return MyFS()Metadata
Metadata
Assignees
Labels
docsIssues related to documentationIssues related to documentation