Skip to content

Blocks Tests#902

Merged
abidlabs merged 16 commits into
blocks-devfrom
blocks-tests
Mar 29, 2022
Merged

Blocks Tests#902
abidlabs merged 16 commits into
blocks-devfrom
blocks-tests

Conversation

@omerXfaruq
Copy link
Copy Markdown
Contributor

@omerXfaruq omerXfaruq commented Mar 29, 2022

- implement a simple test to check blocks config generation
- reformat
Comment thread test/test_data/blocks_configs.py Outdated
"id": 1,
"type": "markdown",
"props": {
"default_value": "<pre><code># Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2\n</code></pre>\n",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the problematic part

Comment thread test/test_data/blocks_configs.py Outdated
'id': 1,
'type': 'markdown',
'props': {
'default_value': '<pre><code> # Detect Disease From Scan\n With this model you can lorem ipsum\n - ipsum 1\n - ipsum 2\n</code></pre>\n',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got the config from from terminal with print(xray_blocks.get_config_file()), not sure why it does not comply with the test.
Thanks for the fix!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same lol

@omerXfaruq
Copy link
Copy Markdown
Contributor Author

LGTM, feel free to merge if it is ok for you.

@abidlabs abidlabs merged commit 6ace296 into blocks-dev Mar 29, 2022
@abidlabs abidlabs deleted the blocks-tests branch March 29, 2022 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants