Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into master
  • Loading branch information
thinkingserious authored Nov 19, 2020
commit 83f8e1e220437ba55ae5a604628e3ad6385dd864
5 changes: 3 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
# Python Engines
engines:
duplication:
Expand All @@ -20,8 +19,10 @@ ratings:
paths:
- "**.py" # default for enable Radon analysis
- "**.md"
- "**.inc"
- "**.module"

# List the files or directories excluded from analysis.
exclude_paths:
- dist/**
- build/**
- build/**
27 changes: 15 additions & 12 deletions test/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import json
import decimal
import json
import os
import unittest
import datetime

from smtpapi import SMTPAPIHeader

Expand Down Expand Up @@ -49,8 +51,11 @@ def test_add(self):

def test_set(self):
header = SMTPAPIHeader()
header.set_tos(
["[email protected]", "[email protected]", "[email protected]"])
header.set_tos([
"[email protected]",
"[email protected]",
"[email protected]",
])
header.set_substitutions({
"subKey": ["subValue"],
"decimalKey": [decimal.Decimal("1.23456789")]
Expand Down Expand Up @@ -102,9 +107,6 @@ def setUp(self):

self.required_files = [
'./Dockerfile',
#'./docker/Dockerfile',
#'./docker-compose.yml',
#'./docker/docker-compose.yml',
'./.codeclimate.yml',
'./.env_sample',
'./ISSUE_TEMPLATE.md',
Expand All @@ -114,12 +116,11 @@ def setUp(self):
'./CHANGELOG.md',
'./CODE_OF_CONDUCT.md',
'./CONTRIBUTING.md',
#'./LICENSE.md',
'./LICENSE.txt',
'./README.md',
'./LICENSE',
'./README.rst',
'./TROUBLESHOOTING.md',
'./USAGE.md',
#'./USE_CASES.md',
'./VERSION.txt',
]

self.file_not_found_message = 'File "{0}" does not exist in repo!'
Expand All @@ -136,8 +137,10 @@ def test_repository_files_exists(self):
),
)
else:
self.assertTrue(os.path.exists(
file_path), msg=self.file_not_found_message.format(file_path))
self.assertTrue(
os.path.exists(file_path),
msg=self.file_not_found_message.format(file_path),
)


if __name__ == '__main__':
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.