Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetkotan committed Apr 9, 2020
1 parent 8edaa2f commit 40584bb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ from minislite.exceptions import RecordNotFoundError, AlreadyExistsError, Databa
* **AreYouSure:** Raise this exception if you want to delete all objects(``objects.delete()``) in model. Add ``i_am_sure=True`` arguments.

## Development and Contribution
See; [CONTRIBUTING.md](CONTRIBUTING..md)
See; [CONTRIBUTING.md](CONTRIBUTING.md)
2 changes: 1 addition & 1 deletion minislite/minislite.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class MiniSLiteDb:
def __init__(self, db_path=":memory:"):
self.db_path = db_path
os.environ["MINILITE_DB_PATH"] = self.db_path
os.environ["MINISLITE_DB_PATH"] = self.db_path

self.connection = sqlite3.connect(self.db_path)
self.connection.row_factory = sqlite3.Row
Expand Down
2 changes: 1 addition & 1 deletion minislite/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class TableManager:
def __init__(self, table_name) -> None:
db_file = os.environ.get("MINILITE_DB_PATH", None)
db_file = os.environ.get("MINISLITE_DB_PATH", None)
if db_file is None:
raise DatabaseNotFound("Database not defined.")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def test_tables_initialize(extended_model: MiniSLiteModel):
os.environ.pop("MINILITE_DB_PATH")
os.environ.pop("MINISLITE_DB_PATH", None)

with pytest.raises(DatabaseNotFound):
TableManager(table_name="x")
Expand Down

0 comments on commit 40584bb

Please sign in to comment.