We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccb0c2d commit 3a3bf88Copy full SHA for 3a3bf88
tests/conftest.py
@@ -345,14 +345,14 @@ def model_files(dbt_project_dir):
345
def selector_file(model_files, dbt_project_dir):
346
"""Create a selector file."""
347
p = dbt_project_dir / "selectors.yml"
348
- first_model = next(str(m.stem) for m in model_files)
+ last_model = [str(m.stem) for m in model_files][-1]
349
350
p.write_text(f"""\
351
selectors:
352
- name: first_model
353
definition:
354
method: fqn
355
- value: "{first_model}"
+ value: "{last_model}"
356
""")
357
358
return p
0 commit comments