From 5c728657f8ff8bfbd416c041ec5ac08213b34c88 Mon Sep 17 00:00:00 2001 From: Br4guette <92679326+Ston14@users.noreply.github.com> Date: Thu, 25 Jul 2024 18:38:59 +0200 Subject: [PATCH] Dev (#53) * Enhance documentation for the project (#41) Co-authored-by: Br4guette * Add build docs * Add more docs (#42) * Enhance documentation for the project * Update docs --------- Co-authored-by: Br4guette * Add references (#43) * Enhance documentation for the project * Update docs * add references --------- Co-authored-by: Br4guette * Add references * Add title * Title 2 * add : mkdocs navigation references * document codes * fix typo * typo * fix typo * fix typo in utils * fix docs in tutorials.md * add : How to use documentation rename : tuto to installation add : documentation for windows fix : mkdocs add paths * Add other OS documentation * fix how to * fix : typo in docs * fix : typo * fix: typo in index * add : dark mode * add : colors on documentation * fix: diataxis * Fix colors * fix readme * Fix dumpfiles (#46) * fix : Dumpfile issue with parameters * test : Create test for dumpfiles * fix context builder * fix dumpfiles : dumpfiles can now be passed with arguments * tests: add tests for each parameters of dumpfiles fix: add markers on tests to easily execute a bunch of test instead of the complete file * fix : kwargs value in set_arguments was setted to int directly * add : Add test fonctions to test dumpfiles with a virtaddr but not able to test locally * add : add pytest decorator markers to pslist_pid --------- Co-authored-by: Br4guette * fix: fix error, function without parameter return an error * sorry * fix typing information (#47) * Fix/get plugins (#48) * fix : bad import on v3_plugins_mod fix : poetry lock modfied due to update dependacies fix : windows setargs * remover useless info --------- Co-authored-by: Br4guette * Fix: Correct dict.get() usage in TreeGrid_to_json renderer and remove debug print - Corrected the usage of dict.get() method by removing keyword arguments and using positional arguments instead. - Ensured the render method returns a dictionary as expected. - Updated the to_list method to properly call the render method and handle exceptions. - Improved the docstrings to reflect the correct return types and behaviors of the methods. - Removed a debug print statement introduced in a previous commit. This fixes the TypeError and ensures the TreeGrid is properly rendered to JSON format. * oops * fix to dataframe * add test for volatility (#49) Co-authored-by: Br4guette * fix: poetry lock * fix: pytest --------- Co-authored-by: Br4guette Co-authored-by: St0n14 Co-authored-by: Yann MAGNIN <42215723+YannMagnin@users.noreply.github.com> --- poetry.lock | 50 ++++++++----------------------------------------- pyproject.toml | 2 +- tests/config.py | 2 +- 3 files changed, 10 insertions(+), 44 deletions(-) diff --git a/poetry.lock b/poetry.lock index 4594282..fd6afdf 100644 --- a/poetry.lock +++ b/poetry.lock @@ -141,16 +141,6 @@ files = [ [package.dependencies] typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""} -[[package]] -name = "atomicwrites" -version = "1.4.1" -description = "Atomic file writes." -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -files = [ - {file = "atomicwrites-1.4.1.tar.gz", hash = "sha256:81b2c9071a49367a7f770170e5eec8cb66567cfbbc8c73d20ce5ca4a8d71cf11"}, -] - [[package]] name = "attrs" version = "23.2.0" @@ -1941,17 +1931,6 @@ files = [ [package.extras] tests = ["pytest"] -[[package]] -name = "py" -version = "1.11.0" -description = "library with cross-python path, ini-parsing, io, code, log facilities" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -files = [ - {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"}, - {file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"}, -] - [[package]] name = "pycparser" version = "2.22" @@ -1997,27 +1976,25 @@ extra = ["pygments (>=2.12)"] [[package]] name = "pytest" -version = "6.2.5" +version = "7.4.4" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" files = [ - {file = "pytest-6.2.5-py3-none-any.whl", hash = "sha256:7310f8d27bc79ced999e760ca304d69f6ba6c6649c0b60fb0e04a4a77cacc134"}, - {file = "pytest-6.2.5.tar.gz", hash = "sha256:131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89"}, + {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, + {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, ] [package.dependencies] -atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""} -attrs = ">=19.2.0" colorama = {version = "*", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" -py = ">=1.8.2" -toml = "*" +tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] -testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"] +testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] [[package]] name = "python-dateutil" @@ -2700,17 +2677,6 @@ webencodings = ">=0.4" doc = ["sphinx", "sphinx_rtd_theme"] test = ["pytest", "ruff"] -[[package]] -name = "toml" -version = "0.10.2" -description = "Python Library for Tom's Obvious, Minimal Language" -optional = false -python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" -files = [ - {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, - {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, -] - [[package]] name = "tomli" version = "2.0.1" @@ -2985,4 +2951,4 @@ test = [] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "426cb72a8cc3bc6b230dc3b6cb484869351a5328c0138678a90673d33f6025e7" +content-hash = "245606da6ab5d8b0adb67fbe4c740dd6543d4cc4bccda7c7055b5cfccaadfab9" diff --git a/pyproject.toml b/pyproject.toml index 6627113..8af146b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,7 @@ doc = [ ] [tool.poetry.dev-dependencies] -pytest = "^6.2" +pytest = "^7.0" [tool.poetry.group.docs.dependencies] mkdocs = "^1.6" diff --git a/tests/config.py b/tests/config.py index 42546aa..6b8b858 100644 --- a/tests/config.py +++ b/tests/config.py @@ -1,3 +1,3 @@ from pathlib import Path -DUMP_FILE = Path("./data/dump.raw") +DUMP_FILE = Path("./data/dump.raw") \ No newline at end of file