-
Notifications
You must be signed in to change notification settings - Fork 314
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
Update pyvirtualdisplay #831
Update pyvirtualdisplay #831
Conversation
… and default_manager_params.json (openwpm#822) * Deleted redundant files and references to - default_browser_params.json and default_manager_params.json * added validate_crawl_configs to docs * updated the docs on how to instantiate TaskManager * Updated Using_OpenWPM.md * Updated Platform-Architecture.md
…enWPM into post-rename-fixes
forgot to pull across fork
Codecov Report
@@ Coverage Diff @@
## CommandRefactoring #831 +/- ##
===================================================
Coverage 42.22% 42.22%
===================================================
Files 29 29
Lines 3214 3214
===================================================
Hits 1357 1357
Misses 1857 1857 Continue to review full report at Codecov.
|
Linking the issue #694 -- also, please note the first 5 commits here were already merged |
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.
Thank you for creating this PR! I've left a couple of minor things and will comment some more on the issue.
test/test_xvfb_browser.py
Outdated
from functools import partial | ||
from typing import List | ||
|
||
from openwpm.command_sequence import CommandSequence | ||
from openwpm.task_manager import TaskManager | ||
|
||
from .openwpmtest import OpenWPMTest | ||
from .utilities import BASE_TEST_URL | ||
|
||
|
||
class TestXVFBDisplay(OpenWPMTest): | ||
"""Test the XVFB display option to see if it runs and shuts down properly after a command is given""" | ||
|
||
def get_config(self, data_dir=""): | ||
return self.get_test_config(data_dir, display_mode="xvfb") | ||
|
||
def test_display_shutdown(self): | ||
manager_params, browser_params = self.get_config() | ||
TEST_SITE = BASE_TEST_URL + "/test_pages/simple_a.html" | ||
manager = TaskManager(manager_params, browser_params) | ||
|
||
sequence = CommandSequence(TEST_SITE) | ||
sequence.get() | ||
sequence.save_screenshot() | ||
manager.execute_command_sequence(sequence) | ||
manager.close() |
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 don't think that this test tests anything that isn't tested by test_simple_commands.py
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.
As per request later, added different command. Had not seen that displaymode=xvfb was tested, sorry.
When writing this comment I noticed one thing. Would you want to do this? |
… and default_manager_params.json (openwpm#822) * Deleted redundant files and references to - default_browser_params.json and default_manager_params.json * added validate_crawl_configs to docs * updated the docs on how to instantiate TaskManager * Updated Using_OpenWPM.md * Updated Platform-Architecture.md
…enWPM into post-rename-fixes
These commits aren't done--I'm having some trouble with the environment |
By rebasing based on CommandRefactoring, it seems to have created a number of unintended commits--I don't know if that was unintentional, or if I should file another pull request to that branch instead of master. |
I have changed this PR to target the CommandRefactoring branch. Unfortunately this is always a bit messy with GitHub, but I'll ignore all files that I know you didn't touch. |
If you elaborate on what these troubled are, I'd be happy to help you. |
Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de>
Thanks, but I think it was just an issue with cached files? I reran install.sh and that seems to have cleared it up. |
Thanks for fixing this issue :) |
Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de>
Yep! Thank you |
Closes #694