This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from docascode/yitian/ut
[dev] Add more unit tests and fix old unit tests.
- Loading branch information
Showing
43 changed files
with
1,256 additions
and
566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Based on: | ||
# https://github.com/kpreid/shinysdr/blob/master/pylintrc | ||
|
||
[MASTER] | ||
# XXX should be changed to your project folder | ||
# see http://stackoverflow.com/a/37238692/3828891 for explanation | ||
init-hook='base_dir="."; import sys,os,re; _re=re.search(r".+\/" + base_dir, os.getcwd()); project_dir = _re.group() if _re else os.path.join(os.getcwd(), base_dir); sys.path.append(project_dir)' | ||
|
||
[MESSAGES CONTROL] | ||
# Find available symbolic names in: | ||
# https://docs.pylint.org/features.html | ||
disable=locally-disabled,trailing-whitespace,fixme,missing-docstring,protected-access,invalid-name,super-init-not-called,star-args,no-self-argument,inherit-non-class,no-method-argument,no-self-use,unused-argument,too-many-return-statements,too-many-branches,too-many-function-args,too-many-instance-attributes,too-many-locals,bad-continuation,unnecessary-lambda,redefined-variable-type,global-statement,line-too-long,mixed-indentation,bad-whitespace,missing-final-newline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import sys | ||
import os | ||
|
||
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) | ||
|
||
source_suffix = '.rst' | ||
master_doc = 'index' | ||
project = u'example' | ||
copyright = u'2018, Microsoft' | ||
author = u'Yiding Tian' | ||
version = '0.1' | ||
release = '0.1' | ||
language = None | ||
exclude_patterns = ['_build'] | ||
pygments_style = 'sphinx' | ||
todo_include_todos = False | ||
html_theme = 'alabaster' | ||
html_static_path = ['_static'] | ||
htmlhelp_basename = 'Example Document' | ||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.napoleon', | ||
'sphinx.ext.intersphinx', | ||
'docfx_yaml.extension' | ||
] | ||
intersphinx_mapping = {'python': ('https://docs.python.org/3.6', None)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
format\.google package | ||
====================== | ||
|
||
Submodules | ||
---------- | ||
|
||
format\.google\.foo module | ||
-------------------------- | ||
|
||
.. automodule:: format.google.foo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: format.google | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
format\.numpy package | ||
===================== | ||
|
||
Submodules | ||
---------- | ||
|
||
format\.numpy\.foo module | ||
------------------------- | ||
|
||
.. automodule:: format.numpy.foo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: format.numpy | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
format package | ||
============== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
format.google | ||
format.numpy | ||
format.rst | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: format | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
format\.rst package | ||
=================== | ||
|
||
Submodules | ||
---------- | ||
|
||
format\.rst\.directives module | ||
------------------------------ | ||
|
||
.. automodule:: format.rst.directives | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
format\.rst\.enum module | ||
------------------------ | ||
|
||
.. automodule:: format.rst.enum | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
format\.rst\.foo module | ||
----------------------- | ||
|
||
.. automodule:: format.rst.foo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: format.rst | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
nspkg\.native\.native\_foo package | ||
================================== | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: nspkg.native.native_foo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
10 changes: 10 additions & 0 deletions
10
tests/example/doc/nspkg.pkg_resources.pkg_resources_foo.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
nspkg\.pkg\_resources\.pkg\_resources\_foo package | ||
================================================== | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: nspkg.pkg_resources.pkg_resources_foo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
nspkg\.pkg\_resources package | ||
============================= | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
nspkg.pkg_resources.pkg_resources_foo | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: nspkg.pkg_resources | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
nspkg\.pkgutil\.pkgutil\_foo package | ||
==================================== | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: nspkg.pkgutil.pkgutil_foo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
nspkg\.pkgutil package | ||
====================== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
nspkg.pkgutil.pkgutil_foo | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: nspkg.pkgutil | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
nspkg package | ||
============= | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
nspkg.pkg_resources | ||
nspkg.pkgutil | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: nspkg | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# coding: utf-8 | ||
|
||
""" Package used to test rst-style, google-style and numpy-style docstrings. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# coding: utf-8 | ||
# This package is used to test google style docstring. |
Oops, something went wrong.