Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
djmannion committed Feb 23, 2024
1 parent 069b268 commit 85125a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,5 @@ class Cortex(pympljstyle.BaseJournal):
"column = 100 mm; offset: -10 = col"
)
```

Once complete, consider contributing your new journal styles to the package via a pull request.
13 changes: 13 additions & 0 deletions tests/test_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,16 @@ def add_custom_units(self) -> None:
pass

assert "custom_test" in pympljstyle.registry


def test_all_styles() -> None:

for journal_name in pympljstyle.registry:

if journal_name == "custom_test":
continue

_ = pympljstyle.get_style(
journal_name=journal_name,
width="1cm",
)

0 comments on commit 85125a4

Please sign in to comment.