2
0
Fork 0

Compare commits

..

No commits in common. "58c3f781df64f1804293e29ff9042e77ec98c4a5" and "3e3f7ac958a6609e14b25407ff63cd71d7801064" have entirely different histories.

4 changed files with 7 additions and 29 deletions

View file

@ -5,13 +5,6 @@ All notable changes to WuttJamaican will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## v0.11.1 (2024-08-15)
### Fix
- tweak methods for `FileConfigTestCase`
- cascade deletes for User -> UserRole
## v0.11.0 (2024-08-13) ## v0.11.0 (2024-08-13)
### Feat ### Feat

View file

@ -6,7 +6,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "WuttJamaican" name = "WuttJamaican"
version = "0.11.1" version = "0.11.0"
description = "Base package for Wutta Framework" description = "Base package for Wutta Framework"
readme = "README.md" readme = "README.md"
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]

View file

@ -25,7 +25,7 @@ WuttJamaican - database sessions
.. class:: Session .. class:: Session
SQLAlchemy session class used for all (normal) :term:`app database` SQLAlchemy session class used for all (normal) app database
connections. connections.
See the upstream :class:`sqlalchemy:sqlalchemy.orm.Session` docs See the upstream :class:`sqlalchemy:sqlalchemy.orm.Session` docs

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# WuttJamaican -- Base package for Wutta Framework # WuttJamaican -- Base package for Wutta Framework
# Copyright © 2023-2024 Lance Edgar # Copyright © 2023 Lance Edgar
# #
# This file is part of Wutta Framework. # This file is part of Wutta Framework.
# #
@ -27,7 +27,6 @@ WuttJamaican - test utilities
import os import os
import shutil import shutil
import tempfile import tempfile
import warnings
from unittest import TestCase from unittest import TestCase
@ -50,9 +49,9 @@ class FileConfigTestCase(TestCase):
def setUp(self): def setUp(self):
""" """ """ """
self.setup_files() self.setup_file_config()
def setup_files(self): def setup_file_config(self):
""" """
Setup logic specific to the ``FileConfigTestCase``. Setup logic specific to the ``FileConfigTestCase``.
@ -60,18 +59,11 @@ class FileConfigTestCase(TestCase):
""" """
self.tempdir = tempfile.mkdtemp() self.tempdir = tempfile.mkdtemp()
def setup_file_config(self): # pragma: no cover
""" """
warnings.warn("FileConfigTestCase.setup_file_config() is deprecated; "
"please use setup_files() instead",
DeprecationWarning, stacklevel=2)
self.setup_files()
def tearDown(self): def tearDown(self):
""" """ """ """
self.teardown_files() self.teardown_file_config()
def teardown_files(self): def teardown_file_config(self):
""" """
Teardown logic specific to the ``FileConfigTestCase``. Teardown logic specific to the ``FileConfigTestCase``.
@ -79,13 +71,6 @@ class FileConfigTestCase(TestCase):
""" """
shutil.rmtree(self.tempdir) shutil.rmtree(self.tempdir)
def teardown_file_config(self): # pragma: no cover
""" """
warnings.warn("FileConfigTestCase.teardown_file_config() is deprecated; "
"please use teardown_files() instead",
DeprecationWarning, stacklevel=2)
self.teardown_files()
def write_file(self, filename, content): def write_file(self, filename, content):
""" """
Write a new file (in temporary folder) with the given filename Write a new file (in temporary folder) with the given filename