# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_everything 1'] = GenericRepr( 'array([[[189, 74, 76],\n [187, 72, 71],\n [186, 71, 71],\n ...,\n [135, 13, 3],\n [138, 16, 8],\n [140, 18, 12]],\n\n [[192, 74, 77],\n [190, 74, 74],\n [187, 71, 72],\n ...,\n [136, 13, 4],\n [138, 15, 7],\n [143, 21, 15]],\n\n [[193, 75, 77],\n [191, 74, 74],\n [188, 71, 72],\n ...,\n [136, 13, 4],\n [140, 17, 9],\n [146, 24, 18]],\n\n ...,\n\n [[224, 111, 113],\n [192, 84, 86],\n [181, 67, 73],\n ...,\n [179, 58, 58],\n [176, 54, 55],\n [176, 56, 55]],\n\n [[235, 117, 119],\n [233, 114, 115],\n [196, 85, 89],\n ...,\n [180, 59, 59],\n [179, 56, 57],\n [180, 61, 59]],\n\n [[227, 108, 118],\n [229, 110, 118],\n [225, 112, 116],\n ...,\n [178, 58, 57],\n [179, 57, 58],\n [179, 57, 57]]], dtype=uint8)' ) snapshots['test_everything 2'] = GenericRepr( 'array([[0.03324521, 0.03324521, 0.03324521, ..., 0.04719654, 0.04719654,\n 0.04719654],\n [0.03324521, 0.03324521, 0.03324521, ..., 0.04719654, 0.04719654,\n 0.04719654],\n [0.03324521, 0.03324521, 0.03324521, ..., 0.04719654, 0.04719654,\n 0.04719654],\n ...,\n [0.02423909, 0.02423909, 0.02423909, ..., 0.03492082, 0.03492082,\n 0.03492082],\n [0.02423909, 0.02423909, 0.02423909, ..., 0.03492082, 0.03492082,\n 0.03492082],\n [0.02423909, 0.02423909, 0.02423909, ..., 0.03492082, 0.03492082,\n 0.03492082]], dtype=float32)' )
# snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots["test_parse_config 1"] = { "case": "case_id", "email": None, "is_dryrun": False, "out_dir": "tests/fixtures/apps/mip/rna/store/", "priority": "low", "sampleinfo_path": "tests/fixtures/apps/mip/rna/store/case_qc_sample_info.yaml", "samples": [{ "id": "sample_id", "type": "wts" }], } snapshots["test_parse_sampleinfo_data 1"] = { "case": "case_id", "date": GenericRepr("datetime.datetime(2019, 11, 21, 14, 31, 2)"), "is_finished": True, "version": "v7.1.4", }
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_sources[kwinana] 1'] = [ GenericRepr( "Pet(location=None, image='https://mediacdnl3.cincopa.com/v2/872206/1354!0kzDAYzQlDQ09D/0/C161blackandwhitekitten.JPG', breed=None, color=None, gender=None, found_on=<Arrow [2020-05-25T07:40:41+00:00]>, source='kwinana', url='https://www.kwinana.wa.gov.au/our-services/animal-services/lostanimals/Pages/default.aspx')" ) ] snapshots['test_sources[swan] 1'] = [ GenericRepr( "Pet(location='MIDVALE', image='http://www.swanamf.com.au/images/animals/20587/photos/original.jpg?1590470590', breed='DSH Cat', color='White', gender='Unknown', found_on=<Arrow [2020-05-26T13:13:00+08:00]>, source='swan', url='http://www.swanamf.com.au/cats')" ), GenericRepr( "Pet(location='MIDLAND', image='http://www.swanamf.com.au/images/animals/20589/photos/original.JPG?1590554273', breed='USH Juvenile', color='White, brown/black ', gender='Unknown', found_on=<Arrow [2020-05-27T12:20:00+08:00]>, source='swan', url='http://www.swanamf.com.au/cats')" ), GenericRepr( "Pet(location='ELLENBROOK', image='http://www.swanamf.com.au/images/animals/20599/photos/original.jpg?1590814402', breed='DSH Cat', color='Black and White', gender='Unknown', found_on=<Arrow [2020-05-30T12:48:00+08:00]>, source='swan', url='http://www.swanamf.com.au/cats')" ), ] snapshots['test_sources[cat_haven] 1'] = [ GenericRepr( "Pet(location='Iluka', image='https://static.wixstatic.com/media/9fa7a0_2e999cf4a72f470cb75b3cd40439ab11~mv2.jpg', breed=None, color='DSH Black and white', gender='Male', found_on=<Arrow [2020-05-29T00:00:00+00:00]>, source='cat_haven', url='https://www.cathavenlostandfound.com/incoming-cats')" ), GenericRepr(
from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_read_diff_file 1'] = [ [ 'change', '', [ None, { '_id': 'crag4l7j', 'abbreviation': 'ABTV', 'created_at': GenericRepr('datetime.datetime(2019, 11, 27, 4, 54, 6, 180000)'), 'imported': True, 'isolates': [ { 'default': True, 'id': '4e8amg20', 'sequences': [ { '_id': 'czwypki5', 'accession': 'NC_010317', 'definition': 'Abaca bunchy top virus DNA-M, complete genome', 'host': 'Musa sp.', 'isolate_id': '4e8amg20', 'otu_id': 'crag4l7j', 'reference': { 'id': 'i0a9tnrl'
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_add[uvloop-False-empty-False] history'] = { '_id': '6116cba1.1', 'created_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)'), 'description': 'Added Isolate B as default', 'diff': [['change', 'version', [0, 1]], [ 'add', 'isolates', [[ 0, { 'default': True, 'id': '9pf', 'sequences': [], 'source_name': 'B', 'source_type': 'isolate' } ]] ]], 'index': { 'id': 'unbuilt', 'version': 'unbuilt'
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_parse_str_to_date[15/08/1992] 1'] = GenericRepr('datetime.date(1992, 8, 15)') snapshots['test_parse_str_to_date[1992-08-15] 1'] = GenericRepr('datetime.date(1992, 8, 15)') snapshots['test_parse_str_to_date[1992/08/15] 1'] = GenericRepr('datetime.date(1992, 8, 15)') snapshots['test_parse_str_to_date_date_obj 1'] = GenericRepr('datetime.date(1992, 8, 15)') snapshots['test_get_age[1992-08-15] 1'] = 27 snapshots['test_get_age[2005-08-15] 1'] = 14 snapshots['test_get_age[2010-08-15] 1'] = 9 snapshots['test_is_older[1992-08-15] 1'] = True snapshots['test_is_older[2005-08-15] 1'] = False snapshots['test_is_older[2010-08-15] 1'] = False
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_electric_benefits_full_outputs elec_ben'] = GenericRepr(' identifier hour_of_day ... ghg_adder_rebalancing methane_leakage\n0 id_0 0 ... 0.137734 0.041598\n1 id_0 0 ... 0.155136 0.046854\n2 id_0 0 ... 0.132449 0.040002\n3 id_0 0 ... 0.123463 0.037288\n4 id_0 0 ... 0.165034 0.049844\n... ... ... ... ... ...\n10075 DEER_LS_2 23 ... 0.964215 0.291212\n10076 DEER_LS_2 23 ... 1.068513 0.322712\n10077 DEER_LS_2 23 ... 1.029674 0.310982\n10078 DEER_LS_2 23 ... 0.766763 0.231578\n10079 DEER_LS_2 23 ... 0.971170 0.293313\n\n[10080 rows x 17 columns]') snapshots['test_user_inputs_basic df_output_table_totals'] = GenericRepr('TRC 1.048\nPAC 1.999\nTRC (and PAC) Electric Benefits ($) 6167.700\nTRC (and PAC) Gas Benefits ($) 8959.930\nTRC (and PAC) Total Benefits ($) 15127.600\nTRC Costs ($) 14436.940\nPAC Costs ($) 7568.470\nElectricity First Year Net Savings (MWh) 10928.246\nElectricity Lifecycle Net Savings (MWh) 54641.233\nGas First Year Net Savings (Therms) 2800.000\nGas Lifecycle Net Savings (Therms) 14000.000\nElectricity Lifecycle GHG Savings (Tons) 45667.236\nGas Lifecycle GHG Savings (Tons) 84.000\nTotal Lifecycle GHG Savings (Tons) 45751.236\ndtype: float64') snapshots['test_user_inputs_from_example_metered df_output_table_totals'] = GenericRepr('TRC 1.048\nPAC 1.999\nTRC (and PAC) Electric Benefits ($) 6167.700\nTRC (and PAC) Gas Benefits ($) 8959.930\nTRC (and PAC) Total Benefits ($) 15127.600\nTRC Costs ($) 14436.940\nPAC Costs ($) 7568.470\nElectricity First Year Net Savings (MWh) 10928.246\nElectricity Lifecycle Net Savings (MWh) 54641.233\nGas First Year Net Savings (Therms) 2800.000\nGas Lifecycle Net Savings (Therms) 14000.000\nElectricity Lifecycle GHG Savings (Tons) 45667.236\nGas Lifecycle GHG Savings (Tons) 84.000\nTotal Lifecycle GHG Savings (Tons) 45751.236\ndtype: float64') snapshots['test_user_inputs_full df_output_table_totals'] = GenericRepr('TRC 1.048\nPAC 1.999\nTRC (and PAC) Electric Benefits ($) 6167.700\nTRC (and PAC) Gas Benefits ($) 8959.930\nTRC (and PAC) Total Benefits ($) 15127.600\nTRC Costs ($) 14436.940\nPAC Costs ($) 7568.470\nElectricity First Year Net Savings (MWh) 10928.246\nElectricity Lifecycle Net Savings (MWh) 54641.233\nGas First Year Net Savings (Therms) 2800.000\nGas Lifecycle Net Savings (Therms) 14000.000\nElectricity Lifecycle GHG Savings (Tons) 45667.236\nGas Lifecycle GHG Savings (Tons) 84.000\nTotal Lifecycle GHG Savings (Tons) 45751.236\ndtype: float64') snapshots['test_user_inputs_single_row df_output_table_totals'] = GenericRepr('TRC 1.809\nPAC 3.450\nTRC (and PAC) Electric Benefits ($) 2450.190\nTRC (and PAC) Gas Benefits ($) 1279.990\nTRC (and PAC) Total Benefits ($) 3730.180\nTRC Costs ($) 2062.420\nPAC Costs ($) 1081.210\nElectricity First Year Net Savings (MWh) 4341.309\nElectricity Lifecycle Net Savings (MWh) 21706.547\nGas First Year Net Savings (Therms) 400.000\nGas Lifecycle Net Savings (Therms) 2000.000\nElectricity Lifecycle GHG Savings (Tons) 18141.574\nGas Lifecycle GHG Savings (Tons) 12.000\nTotal Lifecycle GHG Savings (Tons) 18153.574\ndtype: float64')
# snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_non_empty 1'] = { 'account_admins': [], 'attribute_boolean': [], 'attribute_date': [{ 'field_id': 3, 'iid': 1, 'product_id': 1001, 'type_field_association_iid': 3, 'value': GenericRepr('datetime.date(2019, 2, 13)') }, { 'field_id': 3, 'iid': 2, 'product_id': 1002, 'type_field_association_iid': 9, 'value': GenericRepr('datetime.date(2019, 3, 15)') }, { 'field_id': 3, 'iid': 3, 'product_id': 1010, 'type_field_association_iid': 6, 'value': GenericRepr('datetime.date(2018, 1, 1)') }, { 'field_id': 3, 'iid': 4,
from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['TestCase01CommentToPostAPITestCase::test_case status'] = 200 snapshots['TestCase01CommentToPostAPITestCase::test_case body'] = { 'commentid': 1 } snapshots['TestCase01CommentToPostAPITestCase::test_case header_params'] = { 'content-language': ['Content-Language', 'en'], 'content-length': ['16', 'Content-Length'], 'content-type': ['Content-Type', 'text/html; charset=utf-8'], 'vary': ['Accept-Language, Origin, Cookie', 'Vary'], 'x-frame-options': ['SAMEORIGIN', 'X-Frame-Options'] } snapshots['TestCase01CommentToPostAPITestCase::test_case comment_post'] = 1 snapshots['TestCase01CommentToPostAPITestCase::test_case comment_user'] = 1 snapshots[ 'TestCase01CommentToPostAPITestCase::test_case comment_content'] = 'test comment to a post' snapshots[ 'TestCase01CommentToPostAPITestCase::test_case comment_create_date'] = GenericRepr( "FakeDatetime(2012, 3, 26, 0, 0)")
'rules': None }, { 'condition': None, 'expression': { 'field': 'ContentType', 'operator': 'equals', 'type': 'string', 'values': ['application/json'] }, 'rules': None }] }, 'id': 'e38880f1-9a9c-4268-a801-abb233706c47', 'operation': GenericRepr("<Operation.ENRICH: 'ENRICH'>"), 'operations': None, 'phase': GenericRepr("<Phase.REQUEST: 'REQUEST'>"), 'public_token_generator': GenericRepr("<AliasGeneratorType.UUID: 'UUID'>"), 'targets': ['body'], 'token_manager': GenericRepr("<AliasStoreType.PERSISTENT: 'PERSISTENT'>"), 'transformer': GenericRepr("<TransformerType.JSON_PATH: 'JSON_PATH'>"), 'transformer_config': ['$.account_number'], 'transformer_config_map': None }],
} snapshots['TestCase01ReactToPostAPITestCase::test_case header_params'] = { 'content-language': [ 'Content-Language', 'en' ], 'content-length': [ '17', 'Content-Length' ], 'content-type': [ 'Content-Type', 'text/html; charset=utf-8' ], 'vary': [ 'Accept-Language, Origin, Cookie', 'Vary' ], 'x-frame-options': [ 'SAMEORIGIN', 'X-Frame-Options' ] } snapshots['TestCase01ReactToPostAPITestCase::test_case reaction_id'] = 1 snapshots['TestCase01ReactToPostAPITestCase::test_case reaction_user'] = GenericRepr("<User: username>") snapshots['TestCase01ReactToPostAPITestCase::test_case reaction_type'] = 'LIKE'
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['SnapshotTestSyncedTypes::test_synced_types test_synced_types1'] = { 'address': { 'city': 'bergsville', 'streetaddress': '154 Sparkling Heaven Dr' }, 'appt_date': GenericRepr('datetime.date(1993, 4, 21)'), 'birthdate': GenericRepr('datetime.date(1989, 1, 11)'), 'favorite_color': 'cyan', 'favorite_number': 41, 'name': 'walter', 'time_of_day_birth': GenericRepr('datetime.time(12, 21, 45, 3000)'), 'timestamp_of_birth': GenericRepr( 'datetime.datetime(1989, 1, 11, 1, 21, 45, tzinfo=datetime.timezone.utc)' ), 'uuid_of_birth_record': GenericRepr("UUID('e6a848a6-2682-4e9c-afe2-895f9bd45ff8')"),
snapshots[ 'TestProjectStorage.test_validate_workflow_id_with_invalid_id is_workflow_valid'] = False snapshots[ 'TestProjectStorage.test_validate_developer_for_project_with_valid_id is_developer_valid'] = True snapshots[ 'TestProjectStorage.test_validate_developer_for_project_with_valid_admin_id is_developer_valid'] = True snapshots[ 'TestProjectStorage.test_validate_developer_for_project_with_invalid_id is_developer_valid'] = False snapshots[ 'TestProjectStorage.test_create_project project_details_dto'] = GenericRepr( 'ProjectDetailsDto(project_id=1, name=\'projectManagement\', description="it\'s a blaw blaw blaw blaw blaw blaw ", workflow=\'Workflow_1\', project_type=\'Classic Software\', created_by_id=1, created_at=\'2020-05-28 10:06:23\', developer_ids=[1])' ) snapshots[ 'TestProjectStorage.test_create_project_with_no_developers project_details_dto'] = GenericRepr( 'ProjectDetailsDto(project_id=1, name=\'projectManagement\', description="it\'s a blaw blaw blaw blaw blaw blaw ", workflow=\'Workflow_1\', project_type=\'Classic Software\', created_by_id=1, created_at=\'2020-05-28 10:06:23\', developer_ids=[])' ) snapshots['TestProjectStorage.test_get_user_projects_count projects_count'] = 2 snapshots[ 'TestProjectStorage.test_get_user_projects_count_with_no_projects projects_count'] = 0 snapshots[ 'TestProjectStorage.test_get_admin_projects_count projects_count'] = 2
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots["test_class_match_snapshot 1"] = GenericRepr( "Node(identifier='Animal/NodeType.CLASS/examples', name='Animal', of_type=<NodeType.CLASS: 1>, path='tests/examples/__init__.py', args=('self', 'kind', 'name'), lines=None, external=True, description='Animal(kind: examples.AnimalType, name: str)', parent_identifier='examples/NodeType.MODULE/')" ) snapshots["test_dogfood_match_snapshot 1"] = GenericRepr( "Node(identifier='create_node_from_object/NodeType.FUNCTION/codoc.service.parsing.node', name='create_node_from_object', of_type=<NodeType.FUNCTION: 2>, path='src/codoc/service/parsing/node.py', args=('obj', 'external'), lines=None, external=True, description='', parent_identifier='codoc.service.parsing.node/NodeType.MODULE/codoc.service.parsing')" ) snapshots["test_exception_match_snapshot 1"] = GenericRepr( "Node(identifier='RandomError/NodeType.EXCEPTION/examples', name='RandomError', of_type=<NodeType.EXCEPTION: 4>, path='tests/examples/__init__.py', args=None, lines=None, external=True, description='Common base class for all non-exit exceptions.', parent_identifier='examples/NodeType.MODULE/')" ) snapshots["test_function_match_snapshot 1"] = GenericRepr( "Node(identifier='random_function/NodeType.FUNCTION/examples', name='random_function', of_type=<NodeType.FUNCTION: 2>, path='tests/examples/__init__.py', args=(), lines=None, external=True, description='Will output something COMPLETLY random', parent_identifier='examples/NodeType.MODULE/')" ) snapshots["test_module_match_snapshot 1"] = GenericRepr( "Node(identifier='examples/NodeType.MODULE/', name='examples', of_type=<NodeType.MODULE: 3>, path='tests/examples/__init__.py', args=None, lines=None, external=True, description='', parent_identifier=None)" )
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_define_tables_start_with_empty_db 1'] = { 'account_admins': GenericRepr( "Table('account_admins', MetaData(), Column('admin_id', INTEGER(), table=<account_admins>, primary_key=True, nullable=False), Column('git_hub_login', TEXT(), table=<account_admins>, nullable=False), schema=None)" ), 'attribute_boolean': GenericRepr( "Table('attribute_boolean', MetaData(), Column('iid', INTEGER(), table=<attribute_boolean>, primary_key=True, nullable=False), Column('value', BOOLEAN(), table=<attribute_boolean>), Column('product_id', INTEGER(), ForeignKey('products.product_id'), table=<attribute_boolean>, nullable=False), Column('type_field_association_iid', INTEGER(), ForeignKey('type_field_association.iid'), table=<attribute_boolean>, nullable=False), Column('field_id', INTEGER(), ForeignKey('field.field_id'), table=<attribute_boolean>, nullable=False), schema=None)" ), 'attribute_date': GenericRepr( "Table('attribute_date', MetaData(), Column('iid', INTEGER(), table=<attribute_date>, primary_key=True, nullable=False), Column('value', DATE(), table=<attribute_date>), Column('product_id', INTEGER(), ForeignKey('products.product_id'), table=<attribute_date>, nullable=False), Column('type_field_association_iid', INTEGER(), ForeignKey('type_field_association.iid'), table=<attribute_date>, nullable=False), Column('field_id', INTEGER(), ForeignKey('field.field_id'), table=<attribute_date>, nullable=False), schema=None)" ), 'attribute_date_time': GenericRepr( "Table('attribute_date_time', MetaData(), Column('iid', INTEGER(), table=<attribute_date_time>, primary_key=True, nullable=False), Column('value', DATETIME(), table=<attribute_date_time>), Column('product_id', INTEGER(), ForeignKey('products.product_id'), table=<attribute_date_time>, nullable=False), Column('type_field_association_iid', INTEGER(), ForeignKey('type_field_association.iid'), table=<attribute_date_time>, nullable=False), Column('field_id', INTEGER(), ForeignKey('field.field_id'), table=<attribute_date_time>, nullable=False), schema=None)" ), 'attribute_float': GenericRepr( "Table('attribute_float', MetaData(), Column('iid', INTEGER(), table=<attribute_float>, primary_key=True, nullable=False), Column('value', FLOAT(), table=<attribute_float>), Column('product_id', INTEGER(), ForeignKey('products.product_id'), table=<attribute_float>, nullable=False), Column('type_field_association_iid', INTEGER(), ForeignKey('type_field_association.iid'), table=<attribute_float>, nullable=False), Column('field_id', INTEGER(), ForeignKey('field.field_id'), table=<attribute_float>, nullable=False), schema=None)" ), 'attribute_integer': GenericRepr(
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_clean_game_entry 1'] = [ GenericRepr( 'game_id: Show #8236 - Monday, September 14, 2020\nclue_id: J_1_1\ncategory: OPENING STATEMENTS\nquestion: This girl "lived in the midst of the great Kansas prairies, with Uncle Henry..."\nanswer: Dorothy\n' ), GenericRepr( 'game_id: Show #8236 - Monday, September 14, 2020\nclue_id: J_2_1\ncategory: DISCOVERY\nquestion: In 1985 this ship was discovered by a U.S. Navy expedition led by Robert Ballard that found where she had lain for 73 years\nanswer: the Titanic\n' ), GenericRepr( "game_id: Show #8236 - Monday, September 14, 2020\nclue_id: J_3_1\ncategory: APPROACH THE BENCH\nquestion: Claiming this star player was out of shape for a 2008 exhibition vs. Germany, England's soccer coach benched it like him\nanswer: Beckham\n" ), GenericRepr( 'game_id: Show #8236 - Monday, September 14, 2020\nclue_id: J_6_1\ncategory: SENTENCING\nquestion: In "He gave the dog a bone", bone is a direct one of these & dog is an indirect one\nanswer: an object\n' ), GenericRepr( 'game_id: Show #8236 - Monday, September 14, 2020\nclue_id: J_1_2\ncategory: OPENING STATEMENTS\nquestion: "Moby-Dick" begins with this 3-word sentence\nanswer: "Call me Ishmael."\n' ), GenericRepr( 'game_id: Show #8236 - Monday, September 14, 2020\nclue_id: J_2_2\ncategory: DISCOVERY\nquestion: Collective name for the ancient manuscript fragments discovered in 1947 in caves in the Qumran region of the West Bank\nanswer: the Dead Sea Scrolls\n' ), GenericRepr( "game_id: Show #8236 - Monday, September 14, 2020\nclue_id: J_3_2\ncategory: APPROACH THE BENCH\nquestion: Soviet coach Viktor Tikhonov's benching of goalie Vladislav Tretiak helped Team USA get miraculous at the 1980 Olympics in this village\nanswer: Lake Placid\n" ), GenericRepr(
snapshots['test_schema 1'] = { 'data_path': { 'default': 'data', 'type': 'string' }, 'db_connection_string': { 'default': '', 'type': 'string' }, 'db_name': { 'default': '', 'type': 'string' }, 'force_setup': { 'coerce': GenericRepr('<function to_bool at 0x100000000>'), 'default': False, 'type': 'boolean' }, 'force_version': { 'default': '', 'type': 'string' }, 'host': { 'default': 'localhost', 'type': 'string' }, 'lg_mem': { 'coerce': GenericRepr("<class 'int'>"), 'default': 8, 'type': 'integer'
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_add_updated_at[uvloop] 1'] = [ { '_id': 'foo', 'created_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)'), 'updated_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)') }, { '_id': 'bar', 'created_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)'), 'updated_at': GenericRepr('datetime.datetime(2015, 10, 7, 5, 0)') }, { '_id': 'baz', 'created_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)'), 'updated_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)') }, { '_id': 'bad', 'created_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)'), 'updated_at': GenericRepr('datetime.datetime(2015, 10, 6, 22, 32)') } ]
snapshots = Snapshot() snapshots['test_json_output[_MULTIPLE_SECRETS] 1'] = { 'id': 'path', 'results': [{ 'filename': 'test.txt', 'incidents': [{ 'break_type': 'MySQL Assignment', 'ignore_sha': '6ea3195be80ceae4996cda16955ac052425901b50896b02f797e61777fd297e7', 'occurrences': [ GenericRepr( 'match:go******om, match_type:host, line_start:2, line_end:2, index_start:78, index_end:88' ), GenericRepr( 'match:5**4, match_type:port, line_start:2, line_end:2, index_start:115, index_end:119' ), GenericRepr( 'match:r**t, match_type:username, line_start:2, line_end:2, index_start:138, index_end:142' ), GenericRepr( 'match:m4******wd, match_type:password, line_start:2, line_end:2, index_start:173, index_end:183' ) ], 'policy': 'Secrets detection', 'total_occurrences': 1
# snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots["test_build_bundle 1"] = { "created": GenericRepr("datetime.datetime(2020, 3, 1, 0, 0)"), "files": ["mock of parsed files"], "name": "case_id", "pipeline_version": "v8.2.2", } snapshots["test_parse_files 1"] = [ { "archive": False, "path": "/path/to/rare-disease/cases/case_id/analysis/sample_id/salmon_quant/quant.sf", "tags": ["meta", "mip-rna", "salmon-quant", "sample_id"], }, { "archive": False, "path": "/path/to/rare-disease/cases/case_id/analysis/sample_id/star_fusion/star-fusion.fusion_predictions.abridged.tsv", "tags": ["meta", "mip-rna", "sample_id", "star-fusion"], }, { "archive": False, "path": "/path/to/rare-disease/cases/case_id/analysis/sample_id/arriba_ar/sample_id_lanes_1234_trim_arriba.pdf",
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots["test_class_match_snapshot 1"] = GenericRepr( "Node(identifier='examples.AnimalNodeType.CLASS', name='Animal', description='Animal(kind: examples.AnimalType, name: str)', of_type=<NodeType.CLASS: 1>, parent_identifier='None.examplesNodeType.MODULE', path='/home/cdk/dev/codoc-python/tests/examples/__init__.py', args=('self', 'kind', 'name'), lines=(97, 106))" ) snapshots["test_dogfood_match_snapshot 1"] = GenericRepr( "Node(identifier='codoc.service.parsing.node.create_node_from_objectNodeType.FUNCTION', name='create_node_from_object', description='', of_type=<NodeType.FUNCTION: 2>, parent_identifier='codoc.service.parsing.codoc.service.parsing.nodeNodeType.MODULE', path='/home/cdk/dev/codoc-python/src/codoc/service/parsing/node.py', args=('obj',), lines=(10, 12))" ) snapshots["test_function_match_snapshot 1"] = GenericRepr( "Node(identifier='examples.random_functionNodeType.FUNCTION', name='random_function', description='Will output something COMPLETLY random', of_type=<NodeType.FUNCTION: 2>, parent_identifier='None.examplesNodeType.MODULE', path='/home/cdk/dev/codoc-python/tests/examples/__init__.py', args=(), lines=(55, 60))" ) snapshots["test_module_match_snapshot 1"] = GenericRepr( "Node(identifier='None.examplesNodeType.MODULE', name='examples', description='', of_type=<NodeType.MODULE: 3>, parent_identifier=None, path='/home/cdk/dev/codoc-python/tests/examples/__init__.py', args=None, lines=(1, 106))" )
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot from snapshottest.file import FileSnapshot snapshots = Snapshot() snapshots['test_me_endpoint 1'] = {'url': '/me'} snapshots['test_unicode 1'] = 'pépère' snapshots['test_object 1'] = GenericRepr('SomeObject(3)') snapshots['test_file 1'] = FileSnapshot('snap_test_demo/test_file 1.txt') snapshots['test_multiple_files 1'] = FileSnapshot( 'snap_test_demo/test_multiple_files 1.txt') snapshots['test_multiple_files 2'] = FileSnapshot( 'snap_test_demo/test_multiple_files 2.txt') snapshots['test_nested_objects dict'] = {'key': GenericRepr('#')} snapshots['test_nested_objects defaultdict'] = {'key': [GenericRepr('#')]} snapshots['test_nested_objects list'] = [GenericRepr('#')] snapshots['test_nested_objects tuple'] = (GenericRepr('#'), )
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['TestCase01ReactToCommentAPITestCase::test_case status'] = 200 snapshots['TestCase01ReactToCommentAPITestCase::test_case body'] = { 'reactionid': 1 } snapshots['TestCase01ReactToCommentAPITestCase::test_case header_params'] = { 'content-language': ['Content-Language', 'en'], 'content-length': ['17', 'Content-Length'], 'content-type': ['Content-Type', 'text/html; charset=utf-8'], 'vary': ['Accept-Language, Origin, Cookie', 'Vary'], 'x-frame-options': ['SAMEORIGIN', 'X-Frame-Options'] } snapshots['TestCase01ReactToCommentAPITestCase::test_case reaction_id'] = 1 snapshots[ 'TestCase01ReactToCommentAPITestCase::test_case reaction_user'] = GenericRepr( "<User: username>") snapshots[ 'TestCase01ReactToCommentAPITestCase::test_case reaction_type'] = 'LIKE'
'Prunus virus F', 'reference': { 'id': 'hxn167' }, 'schema': [], 'verified': False, 'version': 1 } snapshots['test_revert[True-uvloop-False-None] 2'] = [{ '_id': '6116cba1.0', 'created_at': GenericRepr('datetime.datetime(2017, 7, 12, 16, 0, 50, 495000)'), 'description': 'Description', 'diff': { '_id': '6116cba1', 'abbreviation': 'PVF', 'imported': True, 'isolates': [{ 'default': True, 'id': 'cab8b360', 'sequences': [{
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['TestWorkFlowStorage.test_get_workflows workflow_details_dtos'] = [ GenericRepr( "WorkflowDetailsDto(workflow_id=1, name='Workflow_1', states=[StateDto(name='State_1'), StateDto(name='State_2'), StateDto(name='State_3')], transitions=[TransitionDetailsDto(name='transition_1', from_state='State_1', to_state='State_2', checklist=[ChecklistDetailsDto(checklist_id=1, name='Check_1', is_required=True), ChecklistDetailsDto(checklist_id=2, name='Check_2', is_required=False), ChecklistDetailsDto(checklist_id=3, name='Check_3', is_required=True), ChecklistDetailsDto(checklist_id=4, name='Check_4', is_required=False)], description='some content'), TransitionDetailsDto(name='transition_2', from_state='State_2', to_state='State_3', checklist=[ChecklistDetailsDto(checklist_id=1, name='Check_1', is_required=True), ChecklistDetailsDto(checklist_id=2, name='Check_2', is_required=False), ChecklistDetailsDto(checklist_id=3, name='Check_3', is_required=True), ChecklistDetailsDto(checklist_id=4, name='Check_4', is_required=False)], description='some content'), TransitionDetailsDto(name='transition_3', from_state='State_1', to_state='State_3', checklist=[], description='some content')], created_at='2020-05-28 10:06:23')" ), GenericRepr( "WorkflowDetailsDto(workflow_id=2, name='Workflow_2', states=[], transitions=[], created_at='2020-05-28 10:06:23')" ) ] snapshots['TestWorkFlowStorage.test_get_workflows_with_no_workflows workflow_details_dtos'] = [ ] snapshots[ 'TestWorkFlowStorage.test_get_workflows_with_no_states workflow_details_dtos'] = [ GenericRepr( "WorkflowDetailsDto(workflow_id=1, name='Workflow_1', states=[], transitions=[TransitionDetailsDto(name='transition_1', from_state='State_1', to_state='State_2', checklist=[ChecklistDetailsDto(checklist_id=1, name='Check_1', is_required=True), ChecklistDetailsDto(checklist_id=2, name='Check_2', is_required=False), ChecklistDetailsDto(checklist_id=3, name='Check_3', is_required=True), ChecklistDetailsDto(checklist_id=4, name='Check_4', is_required=False)], description='some content'), TransitionDetailsDto(name='transition_2', from_state='State_2', to_state='State_3', checklist=[ChecklistDetailsDto(checklist_id=1, name='Check_1', is_required=True), ChecklistDetailsDto(checklist_id=2, name='Check_2', is_required=False), ChecklistDetailsDto(checklist_id=3, name='Check_3', is_required=True), ChecklistDetailsDto(checklist_id=4, name='Check_4', is_required=False)], description='some content'), TransitionDetailsDto(name='transition_3', from_state='State_1', to_state='State_3', checklist=[], description='some content')], created_at='2020-05-28 10:06:23')" ), GenericRepr( "WorkflowDetailsDto(workflow_id=2, name='Workflow_2', states=[], transitions=[], created_at='2020-05-28 10:06:23')" ) ] snapshots[
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_electric_benefits_full_outputs elec_ben'] = GenericRepr( ' identifier hour_of_day ... ghg_adder_rebalancing methane_leakage\n0 id_0 0 ... 0.137734 0.041598\n1 id_0 0 ... 0.155136 0.046854\n2 id_0 0 ... 0.132449 0.040002\n3 id_0 0 ... 0.123463 0.037288\n4 id_0 0 ... 0.165034 0.049844\n... ... ... ... ... ...\n10075 DEER_LS_2 23 ... 0.964215 0.291212\n10076 DEER_LS_2 23 ... 1.068513 0.322712\n10077 DEER_LS_2 23 ... 1.029674 0.310982\n10078 DEER_LS_2 23 ... 0.766763 0.231578\n10079 DEER_LS_2 23 ... 0.971170 0.293313\n\n[10080 rows x 17 columns]' ) snapshots['test_time_series_outputs time_series_elec_outputs'] = GenericRepr( ' hour_of_year ID_0 hourly_savings ... ID_4 DEER_LS_1 DEER_LS_2\n0 0 0.084442 0.084442 ... NaN NaN NaN\n1 1 0.075795 0.075795 ... NaN NaN NaN\n2 2 0.042057 0.042057 ... NaN NaN NaN\n3 3 0.025892 0.025892 ... NaN NaN NaN\n4 4 0.051127 0.051127 ... NaN NaN NaN\n... ... ... ... ... ... ... ...\n306595 8755 NaN 0.677359 ... NaN NaN 0.677359\n306596 8756 NaN 0.989559 ... NaN NaN 0.989559\n306597 8757 NaN 0.725121 ... NaN NaN 0.725121\n306598 8758 NaN 0.069761 ... NaN NaN 0.069761\n306599 8759 NaN 0.860945 ... NaN NaN 0.860945\n\n[306600 rows x 30 columns]' ) snapshots['test_time_series_outputs time_series_gas_outputs'] = GenericRepr( ' year quarter index ... discount av_csts_levelized identifier\n0 2021 1.0 32.0 ... 1.000000 0.721540 id_0\n1 2021 2.0 125.0 ... 0.981210 0.707982 id_0\n2 2021 3.0 218.0 ... 0.962773 0.694679 id_0\n3 2021 4.0 311.0 ... 0.944682 0.681626 id_0\n4 2022 5.0 33.0 ... 0.926931 0.668818 id_0\n.. ... ... ... ... ... ... ...\n135 2024 16.0 314.0 ... 0.752365 0.542861 DEER_LS_2\n136 2025 17.0 36.0 ... 0.738228 0.532661 DEER_LS_2\n137 2025 18.0 129.0 ... 0.724356 0.522652 DEER_LS_2\n138 2025 19.0 222.0 ... 0.710745 0.512831 DEER_LS_2\n139 2025 20.0 315.0 ... 0.697390 0.503195 DEER_LS_2\n\n[140 rows x 13 columns]' ) snapshots['test_user_inputs_basic df_output_table_totals'] = GenericRepr( 'TRC 1.048\nPAC 1.999\nTRC (and PAC) Electric Benefits ($) 6167.700\nTRC (and PAC) Gas Benefits ($) 8959.930\nTRC (and PAC) Total Benefits ($) 15127.600\nTRC Costs ($) 14436.940\nPAC Costs ($) 7568.470\nElectricity First Year Net Savings (MWh) 10928.246\nElectricity Lifecycle Net Savings (MWh) 54641.233\nGas First Year Net Savings (Therms) 2800.000\nGas Lifecycle Net Savings (Therms) 14000.000\nElectricity Lifecycle GHG Savings (Tons) 45667.236\nGas Lifecycle GHG Savings (Tons) 84.000\nTotal Lifecycle GHG Savings (Tons) 45751.236\ndtype: float64' ) snapshots[ 'test_user_inputs_from_example_metered df_output_table_totals'] = GenericRepr( 'TRC 1.048\nPAC 1.999\nTRC (and PAC) Electric Benefits ($) 6167.700\nTRC (and PAC) Gas Benefits ($) 8959.930\nTRC (and PAC) Total Benefits ($) 15127.600\nTRC Costs ($) 14436.940\nPAC Costs ($) 7568.470\nElectricity First Year Net Savings (MWh) 10928.246\nElectricity Lifecycle Net Savings (MWh) 54641.233\nGas First Year Net Savings (Therms) 2800.000\nGas Lifecycle Net Savings (Therms) 14000.000\nElectricity Lifecycle GHG Savings (Tons) 45667.236\nGas Lifecycle GHG Savings (Tons) 84.000\nTotal Lifecycle GHG Savings (Tons) 45751.236\ndtype: float64' ) snapshots['test_user_inputs_full df_output_table_totals'] = GenericRepr( 'TRC 1.048\nPAC 1.999\nTRC (and PAC) Electric Benefits ($) 6167.700\nTRC (and PAC) Gas Benefits ($) 8959.930\nTRC (and PAC) Total Benefits ($) 15127.600\nTRC Costs ($) 14436.940\nPAC Costs ($) 7568.470\nElectricity First Year Net Savings (MWh) 10928.246\nElectricity Lifecycle Net Savings (MWh) 54641.233\nGas First Year Net Savings (Therms) 2800.000\nGas Lifecycle Net Savings (Therms) 14000.000\nElectricity Lifecycle GHG Savings (Tons) 45667.236\nGas Lifecycle GHG Savings (Tons) 84.000\nTotal Lifecycle GHG Savings (Tons) 45751.236\ndtype: float64'
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['TestCase01ListOfPreviousSlotsAPITestCase::test_case status'] = 200 snapshots['TestCase01ListOfPreviousSlotsAPITestCase::test_case body'] = [] snapshots[ 'TestCase01ListOfPreviousSlotsAPITestCase::test_case header_params'] = { 'content-language': ['Content-Language', 'en'], 'content-length': ['2', 'Content-Length'], 'content-type': ['Content-Type', 'text/html; charset=utf-8'], 'vary': ['Accept-Language, Origin, Cookie', 'Vary'], 'x-frame-options': ['SAMEORIGIN', 'X-Frame-Options'] } snapshots[ 'TestCase01ListOfPreviousSlotsAPITestCase::test_case list_of_previous_slots'] = GenericRepr( '<HttpResponse status_code=200, "text/html; charset=utf-8">')
snapshots = Snapshot() snapshots['TestBLAST.test_update[uvloop-None-None-None-True] 1'] = { '_id': 'foo', 'results': [ { 'blast': 'bar', 'index': 2 }, { 'blast': { 'error': None, 'interval': 3, 'last_checked_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)'), 'ready': None, 'result': None, 'rid': 'ABC123' }, 'index': 5 }, { 'blast': 'baz', 'index': 12 } ], 'updated_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)') } snapshots['TestBLAST.test_update[uvloop-None-None-None-False] 1'] = {
'pathoscope': False, 'quality': None, 'ready': False, 'subtraction': { 'id': 'apple' }, 'user': { 'id': 'test' } } snapshots['TestCreate.test[uvloop-none] 2'] = { '_id': '9pfsom1b', 'all_read': True, 'all_write': True, 'created_at': GenericRepr('datetime.datetime(2015, 10, 6, 20, 0)'), 'files': [{ 'id': 'test.fq' }], 'format': 'fastq', 'group': 'none', 'group_read': True, 'group_write': True, 'hold': True, 'is_legacy': False, 'library_type': 'normal', 'name': 'Foobar', 'nuvs': False, 'paired': False, 'pathoscope': False, 'quality': None,
'note': 'lat only', 'path': 'nersc:/go/to/my/maps_v2' }, { 'map_file_path_id': 3, 'map_id': 1012, 'note': 'lat only', 'path': 'abcde:/path/to/the/maps_v2' }, { 'map_file_path_id': 4, 'map_id': 1013, 'note': 'lat only', 'path': 'nersc:/go/to/my/maps_v3' }], 'maps': [{ 'date_posted': GenericRepr('datetime.date(2019, 2, 13)'), 'map_id': 1001, 'mapper': 'pwg-pmn', 'name': 'lat20190213', 'note': '''- This is a dummy test with a lat map - This should not depend on any beam''' }, { 'date_posted': GenericRepr('datetime.date(2020, 1, 20)'), 'map_id': 1012, 'mapper':