Skip to content

Commit

Permalink
Minor changes to fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Feb 28, 2024
1 parent 2da108a commit e2327f9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
pip install .
- name: Test with pytest
run: |
pytest
pytest tests
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class Analysis(BaseAnalysis):
def __init__(self, output_dir: str | None = None):
def __init__(self, output_dir: str = None):
self.output_dir = output_dir
self.output = []

Expand Down
2 changes: 1 addition & 1 deletion src/dynapyt/analyses/BaseAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class BaseAnalysis:

def __init__(self, conf: str | None = None) -> None:
def __init__(self, conf: str = None) -> None:
self.asts = {}
self.conf = conf

Expand Down
8 changes: 4 additions & 4 deletions src/dynapyt/run_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
def run_analysis(
entry: str,
analyses: List[str],
name: str | None = None,
output_dir: str | None = None,
name: str = None,
output_dir: str = None,
coverage: bool = False,
coverage_dir: str | None = None,
script: str | None = None,
coverage_dir: str = None,
script: str = None,
):
if coverage:
if coverage_dir is None:
Expand Down
2 changes: 1 addition & 1 deletion src/dynapyt/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def set_analysis():
set_analysis()


def set_coverage(coverage_dir: str | None):
def set_coverage(coverage_dir: str):
global covered, coverage_path, session_id
print(f"Setting coverage for {coverage_dir}", file=sys.stderr)
if coverage_dir is not None:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_analysis/call_graph/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class TestAnalysis(BaseAnalysis):
def __init__(self, conf: str | None = None):
def __init__(self, conf: str = None):
super().__init__(conf)
self.graph = {}

Expand Down

0 comments on commit e2327f9

Please sign in to comment.