generated from dataforgoodfr/d4g-project-template
-
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.
refactor: use an uppercase L in EcoLogits (#32)
- Loading branch information
1 parent
0695578
commit 4ce9066
Showing
7 changed files
with
19 additions
and
19 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .ecologits import Ecologits | ||
from .ecologits import EcoLogits | ||
|
||
__all__ = ["Ecologits"] | ||
__all__ = ["EcoLogits"] |
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,7 +1,7 @@ | ||
class EcologitsError(Exception): | ||
class EcoLogitsError(Exception): | ||
pass | ||
|
||
|
||
class TracerInitializationError(EcologitsError): | ||
class TracerInitializationError(EcoLogitsError): | ||
"""Tracer is initialized twice""" | ||
pass |
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,8 +1,8 @@ | ||
import pytest | ||
from ecologits import Ecologits | ||
from ecologits.exceptions import EcologitsError | ||
from ecologits import EcoLogits | ||
from ecologits.exceptions import EcoLogitsError | ||
|
||
|
||
def test_double_init(tracer_init): | ||
with pytest.raises(EcologitsError) as e: | ||
Ecologits.init() # Second initialization | ||
with pytest.raises(EcoLogitsError) as e: | ||
EcoLogits.init() # Second initialization |