0.2.19
-
Update: Updated the
stalker.config.Config.database_engine_settings
to point the test database. -
Fix: Fixed a bug in
stalker.testing.UnitTestDBBase.setUp()
where it was not considering the existence of theSTALKER_PATH
environment variable while doing the tests. -
Update: Removed debug message from
db.setup()
which was revealing the database password. -
Update: Updated the
UnitTestDBBase
, it now creates its own test database, which allows all the tests to run in an individual database. Thus, the tests can now be run inmultiprocess
mode which speeds things a lot. -
Fix: Removed any module level imports of
stalker.defaults
variable, which can be changed by a Studio (or by tests) and should always be refreshed. -
Update: Removed the module level import of the
stalker.db.session.DBSession
instalker.db
, so it is not possible to usedb.DBSession
anymore (usestalker.db.session.DBSession
instead). -
Update: The import statements that imports
stalker.defaults
moved to local scopes to allow runtime changes to thedefaults
to be reflected correctly. -
Update: Added Python fall back mode to
stalker.shot.Shot._check_code_availability()
which runs when there is no database. -
Update:
stalker.models.task.TimeLog._validate_task()
is now getting theStatus
instances from theStatusList
that is attached to theTask
instance instead of doing a database query. -
Update:
stalker.models.task.TimeLog._validate_resource()
is now falling back to a Python implementation if there is no database connection. -
Update:
stalker.models.task.Task._total_logged_seconds_getter()
is now hundreds of times faster when there is a lot ofTimeLog
instances attached to theTask
. -
Update: In
stalker.models.task.Task
class, methods those were doing a database query to get the requiredStatus
instances are now using the attachedStatusList
instance to get them. -
Fix: A possible
auto_flush
is prevented inTicket
class. -
Update:
Version.latest_version
property is now able to fall back to a pure Python implementation when there is no database connection. -
Update: The default log level has been increased from
DEBUG
toINFO
. -
Update: In an attempt to speed up tests, a lot of tests that doesn't need an active Database has been updated to use the regular
unittest.TestCase
instead ofstalker.testing.TestBase
and as a result running all of the tests are now 2x faster. -
Fix:
TimeLogs
are now correctly reflected in UTC in a tj3 file. -
Fix: Fixed a lot of tests which were raising Warnings and surprisingly considered as Errors in TravisCI.
-
Fix:
to_tjp
methods of SOM classes that is printing a Datetime object are now printing the dates in UTC. -
Fix: Fixed
stalker.models.auth.Permission
to be hashable for Python 3. -
Fix: Fixed
stalker.models.auth.AuthenticationLog
to be sortable for Python 3. -
Fix: Fixed
stalker.models.version.Version.latest_version
property for Python 3. -
Fix: Fixed tests of
Permission
class to check for correct exception messages in Python 3. -
Update: Replaced the
assertEquals
andassertNotEquals
calls which are deprecated in Python 3 withassertEqual
andassertNotEquals
calls respectively. -
Fix: Fixed tests for
User
andVersion
classes to not to cause theid column is None
warnings of SQLAlchemy to be emitted.