This file contains hidden or 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
2025-01-13 17:29:02,884 - handlers.py[DEBUG]: start: modules-final/config-write_files_deferred: running config-write_files_deferred with frequency once-per-instance | |
2025-01-13 17:29:02,884 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/democluster-tucker-test-demo/sem/config_write_files_deferred - wb: [644] 25 bytes | |
2025-01-13 17:29:02,885 - helpers.py[DEBUG]: Running config-write_files_deferred using lock (<FileLock using file '/var/lib/cloud/instances/democluster-tucker-test-demo/sem/config_write_files_deferred'>) | |
2025-01-13 17:29:02,885 - cc_write_files_deferred.py[DEBUG]: Skipping module named write_files_deferred, no deferred file defined in configuration | |
2025-01-13 17:29:02,885 - handlers.py[DEBUG]: finish: modules-final/config-write_files_deferred: SUCCESS: config-write_files_deferred ran successfully | |
2025-01-13 17:29:02,885 - modules.py[DEBUG]: Running module reset_rmc (<module 'cloudinit.config.cc_reset_rmc' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_reset_rmc.py'>) with frequenc |
This file contains hidden or 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
___________________________ TestXXX.test_xxx ___________________________ | |
... | |
def test_csv(self, app, client, basic_user, bulk_add_test_data, capsys): | |
print(app.show_routes(rule_pattern=r'/api2/xxx/.*')) | |
response = client.get( | |
flask.url_for( | |
'xxx', | |
), | |
headers=guard.pack_header_for_user(basic_user), |
This file contains hidden or 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
""" | |
I found something new today. | |
I find myself often missing the ++ operator in python | |
especially when I am wanting to assign values in tests | |
and would rather have an incrementing variable | |
""" | |
test_val = SomeClass(id=0) | |
another_val = SomeClass(id=1) | |
last_val = SomeClass(id=2) |
This file contains hidden or 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
import arrow | |
import cProfile | |
import contextlib | |
import os | |
@contextlib.contextmanager | |
def profiled(dump_file_prefix='my-profile.prof', dump_file_dir='prof', logger=None): | |
""" | |
Profiles a section of code for later analysis. Use as a context manager |
This file contains hidden or 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
from sqlalchemy.ext.hybrid import hybrid_property | |
from sqlalchemy.ext.declarative import declarative_base, declared_attr | |
from sqlalchemy.orm import sessionmaker, relationship, column_property | |
from sqlalchemy import ( | |
Column, Integer, ForeignKey, Text, | |
select, create_engine, | |
) | |
Base = declarative_base() |