-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Tests): Fixed some broken tests - removed part of the TNS test
- Loading branch information
Showing
17 changed files
with
227 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
"""Subscriber CLI.""" | ||
|
||
import click | ||
from backend.subscriber import add_subscriber, delete_subscriber | ||
|
||
@click.group(name="subscriber", help="Subscriber Tools.") | ||
from frbvoe.backend.subscriber import add_subscriber, delete_subscriber | ||
|
||
|
||
@click.group(name="subscriber", help="Subscriber Tools.") | ||
def subscriber(): | ||
"""Manage subscribers.""" | ||
pass | ||
|
||
|
||
@subscriber.command("add", help="Add a subscriber to the database.") | ||
@click.option("--subscriber_name", help="Name of the subscriber.") | ||
@click.option("--subscriber_email", help="Email address of the subscriber.") | ||
|
||
def add(subscriber_name, subscriber_email): | ||
"""Add subscriber.""" | ||
add_subscriber(subscriber_name, subscriber_email) | ||
click.echo(f"Saved subscriber {subscriber_name} with email {subscriber_email} to the database.") | ||
|
||
click.echo( | ||
f"Saved subscriber {subscriber_name}" | ||
f"with email {subscriber_email} to the database." | ||
) | ||
|
||
|
||
def delete(subscriber_name, subscriber_email): | ||
"""Delete subscriber.""" | ||
delete_subscriber(subscriber_name, subscriber_email) | ||
click.echo(f"De subscriber {subscriber_name} with email {subscriber_email} from the database.") | ||
click.echo( | ||
f"Deleted subscriber {subscriber_name}" | ||
f"with email {subscriber_email} from the database." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.