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

Remove unused fixtures #152

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 0 additions & 76 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,82 +123,6 @@ def check(self, target: definitions.Target) -> list[definitions.Vulnerability]:
exploits_registry.unregister(TestExploit)


@pytest.fixture()
def secure_html_example_cve_2024_31461() -> str:
return """<html data-theme="dark" style="color-scheme: dark;">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Sign In</title>
<meta name="next-head-count" content="3">
<meta property="og:site_name" content="Plane | Simple, extensible, open-source project management tool.">
<meta property="og:title" content="Plane | Simple, extensible, open-source project management tool.">
<style type="text/css">
.EmojiPickerReact button.epr-emoji {
align-items: center;
border-radius: 8px;
box-sizing: border-box;
display: flex;
height: var(--epr-emoji-fullsize);
justify-content: center;
max-height: var(--epr-emoji-fullsize);
max-width: var(--epr-emoji-fullsize);
overflow: hidden;
position: relative;
width: var(--epr-emoji-fullsize)
}
</style>
</head>
</html>
"""


@pytest.fixture()
def insecure_html_example_cve_2024_31461() -> str:
return """
<html data-theme="dark" style="color-scheme: dark;">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Plane | Simple, extensible, open-source project management tool.</title>
<meta property="og:site_name" content="Plane | Simple, extensible, open-source project management tool.">
<meta property="og:title" content="Plane | Simple, extensible, open-source project management tool.">
<meta property="og:url" content="https://app.plane.so/">
</head>

<body>
<div id="__next">
<script>!function () { try { var d = document.documentElement, n = 'data-theme', s = 'setAttribute'; var e = localStorage.getItem('theme'); if ('system' === e || (!e && true)) { var t = '(prefers-color-scheme: dark)', m = window.matchMedia(t); if (m.media !== t || m.matches) { d.style.colorScheme = 'dark'; d[s](n, 'dark') } else { d.style.colorScheme = 'light'; d[s](n, 'light') } } else if (e) { d[s](n, e || '') } if (e === 'light' || e === 'dark') d.style.colorScheme = e } catch (e) { } }()</script>
<div class="pointer-events-none fixed top-5 right-5 z-50 h-full w-80 space-y-5 overflow-hidden"></div>
<div class="pointer-events-none fixed top-5 right-5 z-50 h-full w-80 space-y-5 overflow-hidden"></div>
<div class="h-screen w-full overflow-hidden bg-custom-background-100">
<div
class="hidden sm:block sm:fixed border-r-[0.5px] border-custom-border-200 h-screen w-[0.5px] top-0 left-20 lg:left-32">
</div>
<div
class="fixed grid place-items-center bg-custom-background-100 sm:py-5 top-11 sm:top-12 left-7 sm:left-16 lg:left-28">
<div class="grid place-items-center bg-custom-background-100">
<div class="h-[30px] w-[30px]"><span
style="box-sizing: border-box; display: inline-block; overflow: hidden; width: initial; height: initial; background: none; opacity: 1; border: 0px; margin: 0px; padding: 0px; position: relative; max-width: 100%;"><span
style="box-sizing: border-box; display: block; width: initial; height: initial; background: none; opacity: 1; border: 0px; margin: 0px; padding: 0px; max-width: 100%;"><img
alt="" aria-hidden="true"
src="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27276%27%20height=%27276%27/%3e"
style="display: block; max-width: 100%; width: initial; height: initial; background: none; opacity: 1; border: 0px; margin: 0px; padding: 0px;"></span><img
alt="Plane Logo"
src="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fblue-without-text.17aa0249.png&amp;w=640&amp;q=75"
decoding="async" data-nimg="intrinsic"
style="position: absolute; inset: 0px; box-sizing: border-box; padding: 0px; border: none; margin: auto; display: block; width: 0px; height: 0px; min-width: 100%; max-width: 100%; min-height: 100%; max-height: 100%;"
srcset="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fblue-without-text.17aa0249.png&amp;w=384&amp;q=75 1x, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fblue-without-text.17aa0249.png&amp;w=640&amp;q=75 2x"></span>
</div>
</div>
</div>
</body>

</html>
"""


@pytest.fixture
def scan_bad_url_message() -> message.Message:
"""Creates a bad message of type v3.asset.link to be used by the agent for testing purposes."""
Expand Down
Loading