★ wanayoo — archive 1999 https://github.com/pytest-dev/pytest-html/pull/278Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add download tag for self contained html #278

Open
wants to merge 10 commits into
base: master
from

Conversation

@csm10495
Copy link
Member

csm10495 commented Mar 5, 2020

This should resolve #273. If we're working with a self contained html, simply download text (and json) files instead of trying to open them in the current browser window.

@csm10495
Copy link
Member Author

csm10495 commented Mar 5, 2020

If we think the logic makes sense, I can work to try to fix the unit tests, otherwise, I'll leave this as is for now for further thoughts.

@BeyondEvil
Copy link
Contributor

BeyondEvil commented Mar 5, 2020

This was to deal with something that Chrome (and IE/Edge) did (block data content).

I wonder if we only should change the behavior for those browsers (which would require us to deal with this in javascript) or if we sort of agree with the security aspect and change it for all the things?

I guess what I'm a little bit worried about is introducing a breaking change. 🤔

@csm10495
Copy link
Member Author

csm10495 commented Mar 5, 2020

Copy link
Contributor

christiansandberg left a comment

We can probably assume this going to be standard in many browsers if Google does it.

pytest_html/plugin.py Outdated Show resolved Hide resolved
pytest_html/plugin.py Outdated Show resolved Hide resolved
csm10495 added 2 commits Mar 9, 2020
Copy link
Contributor

BeyondEvil left a comment

Looks good!

It'd be great if you could add some tests as well. :)

csm10495 added 6 commits Mar 11, 2020
@csm10495
Copy link
Member Author

csm10495 commented Mar 11, 2020

Added a couple tests and (hopefully) fixed the linting. @BeyondEvil give it one more look if you can. Thanks.

@ssbarnea ssbarnea added the feature label Aug 24, 2020
@csm10495
Copy link
Member Author

csm10495 commented Sep 18, 2020 •

@ssbarnea any chance this could get merged (after rebase)?

@ssbarnea
Copy link
Collaborator

ssbarnea commented Sep 19, 2020

After rebase yes but it would also be very useful to provide a link in PR description to an sample file produced with this feature, so we can easily test how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

4 participants
You can’t perform that action at this time.