Skip to content

Commit

Permalink
fix test failures
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Kinard <[email protected]>
  • Loading branch information
Polber committed Oct 25, 2024
1 parent da88973 commit ab7ba19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdks/python/apache_beam/yaml/generate_yaml_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

from apache_beam.portability.api import schema_pb2
from apache_beam.utils import subprocess_server
from apache_beam.version import __version__ as beam_version
from apache_beam.yaml import json_utils
from apache_beam.yaml import yaml_provider
from apache_beam.version import __version__ as beam_version


def _singular(name):
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/apache_beam/yaml/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def parse_test_files(filepattern):


logging.getLogger().setLevel(logging.INFO)
parse_test_files(os.path.join(os.path.dirname(__file__), 'tests', '*.yaml'))
parse_test_files(os.path.join(os.path.dirname(__file__), 'tests', 'map.yaml'))

if __name__ == '__main__':
logging.getLogger().setLevel(logging.INFO)
Expand Down
6 changes: 3 additions & 3 deletions sdks/python/apache_beam/yaml/tests/map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pipelines:
append: true
fields:
# TODO(https://github.com/apache/beam/issues/32832): Figure out why Java sometimes re-orders these fields.
literal_int: 10
named_field: element
literal_int: 10
literal_float: 1.5
literal_str: '"abc"'

Expand All @@ -43,5 +43,5 @@ pipelines:
- type: AssertEqual
config:
elements:
- {element: 100, literal_int: 10, named_field: 100, literal_float: 1.5, literal_str: "abc"}
- {element: 200, literal_int: 10, named_field: 200, literal_float: 1.5, literal_str: "abc"}
- {element: 100, named_field: 100, literal_int: 10, literal_float: 1.5, literal_str: "abc"}
- {element: 200, named_field: 200, literal_int: 10, literal_float: 1.5, literal_str: "abc"}

0 comments on commit ab7ba19

Please sign in to comment.