-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create test_mixins.py #119
base: old/develop
Are you sure you want to change the base?
Conversation
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Reviewer's Guide by SourceryThis pull request introduces a new test file Class diagram for VirusTotalv3 MixinsclassDiagram
class VirusTotalv3BaseMixin {
<<abstract>>
+PosixPath python_base_path
+bool update()
+dict run()
}
class VirusTotalv3AnalyzerMixin {
<<abstract>>
+PosixPath python_base_path
+bool update()
+dict run()
}
class VirusTotalv3Base {
+PosixPath python_base_path
+bool update()
+dict run()
}
class VirusTotalv3Analyzer {
+PosixPath python_base_path
+bool update()
+dict run()
}
VirusTotalv3Base --|> VirusTotalv3BaseMixin
VirusTotalv3Analyzer --|> VirusTotalv3AnalyzerMixin
class ObservableTypes {
<<enumeration>>
DOMAIN
IP
URL
HASH
}
class AnalyzerConfig {
+name: str
}
class IngestorConfig {
+name: str
}
VirusTotalv3Base o-- IngestorConfig
VirusTotalv3Analyzer o-- AnalyzerConfig
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Here's the code health analysis summary for commits Analysis Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. It seems to have been created by a bot (hey, khulnasoft-bot!). We assume it knows what it's doing!
PR Code Suggestions ✨Explore these optional code suggestions:
|
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
User description
(Please add to the PR name the issue/s that this PR would close if merged by using a Github keyword. Example:
<feature name>. Closes #999
. If your PR is made by a single commit, please add that clause in the commit too. This is all required to automate the closure of related issues.)Description
Please include a summary of the change and link to the related issue.
Type of change
Please delete options that are not relevant.
Checklist
develop
dumpplugin
command and added it in the project as a data migration. ("How to share a plugin with the community")test_files.zip
and you added the default tests for that mimetype in test_classes.py.FREE_TO_USE_ANALYZERS
playbook by following this guide.url
that contains this information. This is required for Health Checks._monkeypatch()
was used in its class to apply the necessary decorators.MockUpResponse
of the_monkeypatch()
method. This serves us to provide a valid sample for testing.Black
,Flake
,Isort
) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.tests
folder). All the tests (new and old ones) gave 0 errors.DeepSource
,Django Doctors
or other third-party linters have triggered any alerts during the CI checks, I have solved those alerts.Important Rules
PR Type
Tests
Description
test_mixins.py
to validate the functionality of VirusTotal mixins.VirusTotalv3Base
andVirusTotalv3Analyzer
classes.Changes walkthrough 📝
test_mixins.py
Add unit tests for VirusTotal mixins in `test_mixins.py`
tests/api_app/test_mixins.py
test_mixins.py
.VirusTotalv3Base
andVirusTotalv3Analyzer
classes.
Summary by Sourcery
Introduce a new test suite for VirusTotal mixins by adding
test_mixins.py
, which includes tests for various observable types and their relationships using mock responses.Tests:
test_mixins.py
to test the functionality of VirusTotal mixins, includingVirusTotalv3AnalyzerMixin
andVirusTotalv3BaseMixin
.