Skip to content

Creation of test scripts  #16

Closed

Description

@initd1

There is no current test framework available for the project.

Intent to is develop tests using pytest for each module:

  • Common
  • Email
  • IP
  • main.py

New issues may be created for tests made for each module.

Activity

  1. added
    enhancement
    help wanted
    good first issue
    on Apr 7, 2023
  2. initd1 commented on Apr 7, 2023

    @initd1
    OwnerAuthor

    Expected structure for test framework:

    ├── Common
    │   ├── __init__.py
    │   ├── breach_checker.py
    │   ├── config.py
    │   └── utils.py
    ├── Email
    │   ├── __init__.py
    │   └── email_reputation_checker.py
    ├── tests
    │   ├── Common
    │   │   ├── __init__.py
    │   │   ├── test_breach_checker.py
    │   │   ├── test_config.py
    │   │   └── test_utils.py
    │   ├── Email
    │   │   ├── __init__.py
    │   │   └── test_email_reputation_checker.py
    │   └── test_config.py
    ├── config.ini
    ├── main.py
    └── README.md
    

    Require a tests directory, with a test file for each module (email, IP, Common etc) with the corresponding file as shown above.

  3. reopened this on Apr 7, 2023
  4. pinned this issue on Apr 7, 2023
  5. linked a pull request that will close this issueTest framework #19on Apr 7, 2023
  6. H4ppy-04 commented on Apr 9, 2023

    @H4ppy-04
    Collaborator
    • Integration tests can't be done if they require an API key ☹️
    • What I can suggest is creating an actions workflow and listing any keys as repository secrets. I would be careful with this though, as there is a set amount of times that keys can be used (dependent on subscription type)
  7. initd1 commented on Apr 9, 2023

    @initd1
    OwnerAuthor
    • Integration tests can't be done if they require an API key ☹️
    • What I can suggest is creating an actions workflow and listing any keys as repository secrets. I would be careful with this though, as there is a set amount of times that keys can be used (dependent on subscription type)

    that is correct. The VirusTotal API Key has a limit of 4 requests per minute if it's a free API Key
    and HIBP API has a 10 requests per minute limit for the basic one.

  8. initd1 commented on Apr 9, 2023

    @initd1
    OwnerAuthor

    @GH-Syn Please update README.md with instructions on how to set up the test and execute tests.

  9. self-assigned this
    on Apr 10, 2023
  10. unpinned this issue on Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions