File tree 4 files changed +18
-14
lines changed 4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
4
4
<p align =" center " width =" 100% " >
5
- <img width="80%" src="https://github.com/msinamsina/automail/blob/main/docs/_static/automail-logo.png" >
5
+ <img width="80%" src="https://github.com/msinamsina/automail/blob/main/docs/_static/automail-logo.png?raw=true " >
6
6
</p >
7
7
8
8
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = pyautomail
3
3
author = Mohammad sina Allahkaram
4
- author_email = jmsinamsina @gmail.com
5
- description = A Python pkg and command-line interface for Sending email to your contact list
4
+ author_email = msinamsina @gmail.com
5
+ description = Automated Email Sending for Large Scale Email and Gmail Automation
6
6
long_description_content_type = text/markdown
7
7
project_urls =
8
- Bug Tracker = https://github.com/msinamsina/automail /issues
9
- Changelog = https://github.com/msinamsina/automail /releases
10
- Documentation = https://automail .readthedocs.io/en/latest/
11
- Source Code = https://github.com/msinamsina/automail
8
+ Bug Tracker = https://github.com/msinamsina/pyautomail /issues
9
+ Changelog = https://github.com/msinamsina/pyautomail /releases
10
+ Documentation = https://pyautomail .readthedocs.io/en/latest/
11
+ Source Code = https://github.com/msinamsina/pyautomail
12
12
readme = " README.md"
13
13
requires-python = " >=3.9"
14
14
classifiers =
15
15
Programming Language :: Python :: 3
16
16
License :: OSI Approved :: MIT License
17
17
Operating System :: OS Independent
18
18
19
- url = https://github.com/msinamsina/automail
19
+ url = https://github.com/msinamsina/pyautomail
20
20
21
21
[options]
22
22
packages = find:
Original file line number Diff line number Diff line change 2
2
3
3
setup (
4
4
name = 'pyautomail' ,
5
- version = '1.5.0 ' ,
5
+ version = '1.5.1.3 ' ,
6
6
packages = find_packages (),
7
- url = 'https://github.com/msinamsina/automail ' ,
7
+ url = 'https://github.com/msinamsina/pyautomail ' ,
8
8
license = 'MIT' ,
9
9
author = 'Mohammad sina Allahkaram' ,
10
10
author_email = "msinamsina@gmail.com" ,
11
- description = 'A Python pkg and command-line interface for Sending email to your contact list ' ,
11
+ description = 'Automated Email Sending for Large Scale Email and Gmail Automation ' ,
12
12
install_requires = [
13
13
'sqlalchemy' ,
14
14
'sqlalchemy_utils' ,
Original file line number Diff line number Diff line change @@ -18,15 +18,18 @@ def test_register_1():
18
18
19
19
20
20
def test_register_2 ():
21
- os .remove ("contact.csv" )
21
+ try :
22
+ os .remove ("contact.csv" )
23
+ except FileNotFoundError :
24
+ pass
22
25
result = runner .invoke (cli .app , ["register" , "contact.csv" ])
23
26
assert result .exit_code == 2
24
27
assert "Error: Invalid value for 'CONTACT_LIST': Path 'contact.csv' does not exist." in result .output
25
28
26
29
27
30
def test_register_3 ():
28
31
29
- shutil .rmtree ("Contact List" )
32
+ shutil .rmtree ("Contact List" , ignore_errors = True )
30
33
with open ("contact.csv" , "w" ) as f :
31
34
f .write ("name,email\n " )
32
35
f .write ("John Doe,john@gmail.com\n " )
@@ -42,7 +45,8 @@ def test_register_3():
42
45
# check the database
43
46
# go to the Contact List folder
44
47
session , engine = get_session ()
45
- assert session .query (Process ).filter (Process .title == "Contact List" ).count () > 1
48
+ assert session .query (Process ).filter (Process .title == "Contact List" ).count () == 1
46
49
47
50
session .close ()
48
51
engine .dispose ()
52
+
You can’t perform that action at this time.
0 commit comments