Merge lp:~abreu-alexandre/click-reviewers-tools/fix-local-url-patterns-override-rule into lp:click-reviewers-tools

Proposed by Alexandre Abreu on 2015-02-02
Status: Merged
Merge reported by: Jamie Strandboge
Merged at revision: not available
Proposed branch: lp:~abreu-alexandre/click-reviewers-tools/fix-local-url-patterns-override-rule
Merge into: lp:click-reviewers-tools
Diff against target: 29 lines (+2/-6)
2 files modified
clickreviews/cr_desktop.py (+1/-5)
clickreviews/tests/test_cr_desktop.py (+1/-1)
To merge this branch: bzr merge lp:~abreu-alexandre/click-reviewers-tools/fix-local-url-patterns-override-rule
Reviewer Review Type Date Requested Status
Jamie Strandboge 2015-02-02 Approve on 2015-02-03
Review via email: mp+248273@code.launchpad.net

Commit Message

Relax the rule that states that webapps with a model search path shouldn't have url patterns listed in the command line. In order to avoid confusion, we allow this to happen (and it already works fine the command line patterns being appended to the locally defined ones).

Description of the Change

Relax the rule that states that webapps with a model search path shouldn't have url patterns listed in the command line. In order to avoid confusion, we allow this to happen (and it already works fine the command line patterns being appended to the locally defined ones).

To post a comment you must log in.
Jamie Strandboge (jdstrand) wrote :

Since --webappUrlPatterns is now supposed to work with a model search path as per Alex's comments, this looks ok to me.

review: Approve
Daniel Holbach (dholbach) wrote :

Looks like this wasn't merged yet.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'clickreviews/cr_desktop.py'
2--- clickreviews/cr_desktop.py 2014-12-04 23:10:47 +0000
3+++ clickreviews/cr_desktop.py 2015-02-02 16:02:22 +0000
4@@ -340,11 +340,7 @@
5 "--webappModelSearchPath or --webapp= when " + \
6 "running local application"
7 elif not is_launching_local_app:
8- if found_url_patterns and found_model_search_path:
9- t = 'error'
10- s = "should not specify --webappUrlPatterns when using " + \
11- "--webappModelSearchPath"
12- elif not found_url_patterns and not found_model_search_path:
13+ if not found_url_patterns and not found_model_search_path:
14 t = 'error'
15 s = "must specify one of --webappUrlPatterns or " + \
16 "--webappModelSearchPath"
17
18=== modified file 'clickreviews/tests/test_cr_desktop.py'
19--- clickreviews/tests/test_cr_desktop.py 2014-11-21 18:41:24 +0000
20+++ clickreviews/tests/test_cr_desktop.py 2015-02-02 16:02:22 +0000
21@@ -224,7 +224,7 @@
22 ex)
23 c.check_desktop_exec_webapp_args()
24 r = c.click_report
25- expected_counts = {'info': None, 'warn': 0, 'error': 1}
26+ expected_counts = {'info': None, 'warn': 0, 'error': 0}
27 self.check_results(r, expected_counts)
28
29 def test_check_desktop_exec_webbrowser_missing_exec(self):

Subscribers

People subscribed via source and target branches