Skip to content

Commit

Permalink
chore: update tests for v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nullswan committed May 11, 2022
1 parent 61c42ab commit 506d43e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/unit/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import argparse
import importlib.metadata
import sys
from multiprocessing import cpu_count

from graphinder import __version__
Expand Down Expand Up @@ -60,13 +59,11 @@ def test_validate_arguments() -> None:

def test_main() -> None:
"""main test."""
sys.argv = ['graphinder']
assert main() is False

assert main([]) is False


def test_full_run() -> None:
"""Test a complete run."""

sys.argv = ['graphinder', '-d', 'example.com']

assert main() is True
assert main(['-d', 'example.com']) is True

0 comments on commit 506d43e

Please sign in to comment.