Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
21
venv/Lib/site-packages/nbformat/tests/base.py
Normal file
21
venv/Lib/site-packages/nbformat/tests/base.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
"""
|
||||
Contains base test class for nbformat
|
||||
"""
|
||||
|
||||
# Copyright (c) IPython Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
import os
|
||||
import unittest
|
||||
import io
|
||||
|
||||
class TestsBase(unittest.TestCase):
|
||||
"""Base tests class."""
|
||||
|
||||
@classmethod
|
||||
def fopen(cls, f, mode=u'r',encoding='utf-8'):
|
||||
return io.open(os.path.join(cls._get_files_path(), f), mode, encoding=encoding)
|
||||
|
||||
@classmethod
|
||||
def _get_files_path(cls):
|
||||
return os.path.dirname(__file__)
|
Loading…
Add table
Add a link
Reference in a new issue