Skip to content

Commit

Permalink
add/update tests as issue #69 is fixed thanks to issue #93 (and PR #96)
Browse files Browse the repository at this point in the history
  • Loading branch information
dadadel committed Mar 8, 2021
1 parent 54288c1 commit b44e4a8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.4.0:
- add support to type hints (PEP 484)
- issues #46, #93
- issues #46, #69, #93
- integrate PRs #96

0.3.4 - 2021/03/04:
- manage async functions
Expand Down
3 changes: 3 additions & 0 deletions tests/issue69.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def plot_outlier(inlier, outlier, outlier_rgb = [1, 0, 0]):
"""Plot the outlier of ..."""
pass
13 changes: 13 additions & 0 deletions tests/issue69.py.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- a/issue69.py
+++ b/issue69.py
@@ -1,3 +1,9 @@
def plot_outlier(inlier, outlier, outlier_rgb = [1, 0, 0]):
- """Plot the outlier of ..."""
+ """Plot the outlier of ...
+
+ :param inlier:
+ :param outlier:
+ :param outlier_rgb: (Default value = [1, 0, 0])
+
+ """
pass
10 changes: 10 additions & 0 deletions tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,16 @@ def func(param): # some comment
result = ''.join(p.diff())
self.assertTrue(result == expected)

def testIssue69(self):
# Title: Wrong Formatting for Input params with default values
# When default value has a list it is split and considers list's elements as parameters
p = pym.PyComment(absdir('issue69.py'))
p._parse()
f = open(absdir('issue69.py.patch'))
patch = f.read()
f.close()
self.assertEqual(''.join(p.diff()), patch)

def testIssue88(self):
# Title: Not working on async functions
# The async functions are not managed
Expand Down

0 comments on commit b44e4a8

Please sign in to comment.