You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromfs.testimportFSTestCasesclassTestMyFS(FSTestCases):
defmake_fs(self):
# Return an instance of your FS object herereturnMyFS()
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:
importunittestfromfs.testimportFSTestCasesclassTestMyFS(FSTestCases, unittest.TestCase):
defmake_fs(self):
# Return an instance of your FS object herereturnMyFS()
The text was updated successfully, but these errors were encountered:
The Implementing Filesystems -> Testing Filesystems section has a minor error in the example:
FSTestCases
is a plain class without anything more thanobject
as a base class, yet it's methods expectunittest.TestCase
to be a base, so the above won't work. It's missing an additional base class:The text was updated successfully, but these errors were encountered: