-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename examples and add simple system test
- Loading branch information
Showing
6 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
10 changes: 5 additions & 5 deletions
10
examples/diagrams/test_dag.py → examples/diagrams/example_dag.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from diagrams import Diagram | ||
from diagrams.generic.blank import Blank | ||
|
||
with Diagram("test_dag", show=False): | ||
with Diagram("example_dag", show=False): | ||
run_this_1 = Blank("run_this_1") | ||
run_this_2b = Blank("run_this_2b") | ||
run_this_3 = Blank("run_this_3") | ||
run_this_2a = Blank("run_this_2a") | ||
run_this_3 = Blank("run_this_3") | ||
run_this_2b = Blank("run_this_2b") | ||
|
||
run_this_1 >> run_this_2b | ||
run_this_2b >> run_this_3 | ||
run_this_1 >> run_this_2a | ||
run_this_2a >> run_this_3 | ||
run_this_1 >> run_this_2b | ||
run_this_2b >> run_this_3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import subprocess | ||
import unittest | ||
|
||
|
||
class TestAirflowDiagrams(unittest.TestCase): | ||
def test_run_example_dag(self): | ||
subprocess.call(['python', 'examples/dags/example_dag.py']) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |