-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cookiecutter organization name throughout project
- Loading branch information
1 parent
c4fbf7d
commit d078220
Showing
6 changed files
with
13 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ if [ -d .git ]; then | |
else | ||
echo "Setting up Git" | ||
git init . -b main | ||
git remote add origin "[email protected]:Lightmatter/{{ cookiecutter.repo_name }}.git" | ||
git remote add origin "[email protected]:{{ cookiecutter.org_name }}/{{ cookiecutter.repo_name }}.git" | ||
#todo - add all and make initial push | ||
fi |
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
2 changes: 1 addition & 1 deletion
2
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/index.jinja
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 |
---|---|---|
|
@@ -34,11 +34,16 @@ def test_file_upload(): | |
|
||
|
||
def test_send_email(mailoutbox): | ||
mail.send_mail("subject", "body", "[email protected]", ["[email protected]"]) | ||
mail.send_mail( | ||
"subject", | ||
"body", | ||
"from@{{ cookiecutter.org_name|lower }}.com", | ||
["to@{{ cookiecutter.org_name|lower }}.com"], | ||
) | ||
assert len(mailoutbox) == 1 | ||
|
||
m = mailoutbox[0] | ||
assert m.subject == "subject" | ||
assert m.body == "body" | ||
assert m.from_email == "from@lightmatter.com" | ||
assert list(m.to) == ["to@lightmatter.com"] | ||
assert m.from_email == "from@{{ cookiecutter.org_name|lower }}.com" | ||
assert list(m.to) == ["to@{{ cookiecutter.org_name|lower }}.com"] |