Skip to content

Commit

Permalink
Reenable pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Jan 20, 2024
1 parent d9a00e9 commit 6ff3b28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,5 @@ jobs:
pip install .
- name: Test with pytest
run: |
# TODO: add install of models to test when we go public
varbert --help
# TODO: uncomment when we go public
# pytest tests/tests.py
varbert --download-models
pytest tests/tests.py
2 changes: 1 addition & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Dict

from varbert import VariableRenamingAPI
from yodalib.data import Function, FunctionArgument, FunctionHeader, StackVariable
from libbs.artifacts import Function, FunctionArgument, FunctionHeader, StackVariable


def function_with_new_names(function: Function, new_names: Dict[str, str]):
Expand Down
2 changes: 1 addition & 1 deletion varbert/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.0.9"
__version__ = "2.0.10"

import importlib.resources
import tarfile
Expand Down
1 change: 1 addition & 0 deletions varbert/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def predict_for_functions(func_addrs: Optional[List[int]] = None, decompiler: Op
dec_interface = DecompilerInterface.discover(force_decompiler=decompiler)
varbert = VariableRenamingAPI(decompiler_interface=dec_interface)
func_addrs = func_addrs if func_addrs else dec_interface.functions
func_addrs = [dec_interface.art_lifer.lift_addr(addr) for addr in func_addrs]

# grab real functions, which require decompilation, and predict names for them
total_suggested_funcs = 0
Expand Down

0 comments on commit 6ff3b28

Please sign in to comment.