This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Improvement: if the Debug true disable the verify ssl in fetch content, That form is better to run local, I think :) #27
Open
elinaldosoft
wants to merge
9
commits into
okfn-brasil:master
Choose a base branch
from
elinaldosoft:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1028c4c
Improvement: if the Debug true disable the verify ssl in fetch conten…
elinaldosoft c5aea70
Add _blank to open content on external page
elinaldosoft db3740f
Refactory: disable verify ssl
elinaldosoft 21aad07
fixbug: format file by black
elinaldosoft 1698e18
Add test and fixbug disable ssl, logic was inverted
elinaldosoft a98bfbc
Fixbug: format file by black
elinaldosoft 86e4294
Remove target blank in PR wrong
elinaldosoft fde87d9
Remove test with depends external
elinaldosoft d64a255
Refactory: add option very_ssl false in cliente session if debug true
elinaldosoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
</div><!-- end .meta --> | ||
|
||
<h2> | ||
<a class="no-underline" href="{{ case.main_story.url }}">{{ case.main_story.title|e }}</a> | ||
<a class="no-underline" href="{{ case.main_story.url }}" target="_blank">{{ case.main_story.title|e }}</a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't belong in this PR. Please, check #9. |
||
</h2> | ||
|
||
<h3 class="grey-text"> | ||
|
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 |
---|---|---|
|
@@ -30,3 +30,10 @@ def test_data_cases_property(mocker): | |
assert len(cases) == 5 | ||
cases[0].when == date(2018, 10, 8) | ||
cases[-1].when == date(2018, 10, 3) | ||
|
||
|
||
def test_data_cases_property_by_request(): | ||
data = Data() | ||
loop = asyncio.get_event_loop() | ||
cases = loop.run_until_complete(data.cases()) | ||
assert len(cases) == 3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not advisable. It makes tests depends on external connection and availability, and it also depends on envvar settings (have you seen it's failing on Travis? We use the production stylesheet there, probably that's why it's failing). |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not the proper place to handle this kwarg. The session is defined a few lines above and you're overwriting it. Beyond that now there's two different places defining sessions for the same request, what is a bit confusing. I'm gonna suggest something different around line 40;