Skip to content

Commit

Permalink
rewrite test (remove script to tun node.js server)
Browse files Browse the repository at this point in the history
  • Loading branch information
phchen95 committed Sep 18, 2024
1 parent 37a17e1 commit f7a57ae
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 211 deletions.
8 changes: 4 additions & 4 deletions src/ansys/dynamicreporting/core/adr_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,14 @@ def get_report_component(
my_report.get_report_component()
"""
# fetch method using predefined prefix rules in the proxy server OR using traditional <iframe>
# add host-style-path attribute if specified (can only work when prefix is provided)
host_style_path = 'host-style-path="{style_path}"' if style_path else ""
fetchMethod = (
f'prefix="{prefix}" guid="{self.get_guid()}" query="{filter}"'
f'prefix="{prefix}" guid="{self.get_guid()}" query="{filter}" {host_style_path}'
if prefix
else f'reportURL="{self.get_url()}" width="{width}" height="{height}"'
)
# add host-style-path attribute if specified
host_style_path = 'host-style-path="{style_path}"' if style_path else ""
component = f"<adr-report {fetchMethod} {host_style_path}></adr-report>"
component = f"<adr-report {fetchMethod}></adr-report>"
return component

def get_iframe(self, width: int = 1000, height: int = 800, filter: str = ""):
Expand Down
Empty file.
109 changes: 0 additions & 109 deletions tests/test_data/simple_proxy_server_test/index.js

This file was deleted.

Loading

0 comments on commit f7a57ae

Please sign in to comment.