Skip to content

Commit

Permalink
urls are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
msinamsina committed Aug 3, 2023
1 parent 8ca7851 commit fb86687
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


<p align="center" width="100%">
<img width="80%" src="https://github.com/msinamsina/automail/blob/main/docs/_static/automail-logo.png" >
<img width="80%" src="https://github.com/msinamsina/automail/blob/main/docs/_static/automail-logo.png?raw=true" >
</p>


Expand Down
14 changes: 7 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[metadata]
name= pyautomail
author = Mohammad sina Allahkaram
author_email = jmsinamsina@gmail.com
description= A Python pkg and command-line interface for Sending email to your contact list
author_email = msinamsina@gmail.com
description= Automated Email Sending for Large Scale Email and Gmail Automation
long_description_content_type = text/markdown
project_urls =
Bug Tracker = https://github.com/msinamsina/automail/issues
Changelog = https://github.com/msinamsina/automail/releases
Documentation = https://automail.readthedocs.io/en/latest/
Source Code = https://github.com/msinamsina/automail
Bug Tracker = https://github.com/msinamsina/pyautomail/issues
Changelog = https://github.com/msinamsina/pyautomail/releases
Documentation = https://pyautomail.readthedocs.io/en/latest/
Source Code = https://github.com/msinamsina/pyautomail
readme = "README.md"
requires-python = ">=3.9"
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent

url= https://github.com/msinamsina/automail
url= https://github.com/msinamsina/pyautomail

[options]
packages = find:
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

setup(
name='pyautomail',
version='1.5.0',
version='1.5.1.3',
packages=find_packages(),
url='https://github.com/msinamsina/automail',
url='https://github.com/msinamsina/pyautomail',
license='MIT',
author='Mohammad sina Allahkaram',
author_email="msinamsina@gmail.com",
description='A Python pkg and command-line interface for Sending email to your contact list',
description='Automated Email Sending for Large Scale Email and Gmail Automation',
install_requires=[
'sqlalchemy',
'sqlalchemy_utils',
Expand Down
10 changes: 7 additions & 3 deletions tests/test_cli/test_cli_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ def test_register_1():


def test_register_2():
os.remove("contact.csv")
try:
os.remove("contact.csv")
except FileNotFoundError:
pass
result = runner.invoke(cli.app, ["register", "contact.csv"])
assert result.exit_code == 2
assert "Error: Invalid value for 'CONTACT_LIST': Path 'contact.csv' does not exist." in result.output


def test_register_3():

shutil.rmtree("Contact List")
shutil.rmtree("Contact List", ignore_errors=True)
with open("contact.csv", "w") as f:
f.write("name,email\n")
f.write("John Doe,john@gmail.com\n")
Expand All @@ -42,7 +45,8 @@ def test_register_3():
# check the database
# go to the Contact List folder
session, engine = get_session()
assert session.query(Process).filter(Process.title == "Contact List").count() > 1
assert session.query(Process).filter(Process.title == "Contact List").count() == 1

session.close()
engine.dispose()

0 comments on commit fb86687

Please sign in to comment.