Skip to content

Commit 988e4e4

Browse files
committed
Updated README file
1 parent 5343d82 commit 988e4e4

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Add algorithm BestFit.
1212
- Switch to new domain.
1313

14-
## [2.0.0] - 2025-03-xx
14+
## [2.0.0] - 2025-03-03
1515

1616
### Added
1717
- New `/run_simulation_stream` endpoint for streaming simulation results in real-time
@@ -79,4 +79,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7979

8080
[1.0.0]: https://github.com/MirkoZETA/FlexNetSim-API/releases/tag/v1.0.0
8181
[1.1.0]: https://github.com/MirkoZETA/FlexNetSim-API/releases/tag/v1.1.0
82+
[1.1.1]: https://github.com/MirkoZETA/FlexNetSim-API/releases/tag/pipeline-fix
8283
[2.0.0]: https://github.com/MirkoZETA/FlexNetSim-API/releases/tag/v2.0.0

tests/test_compilation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def create_app(self):
1414

1515
def test_compilation_failure(self):
1616
os.rename("./src/main.cpp", "./src/main.cpp.temp")
17-
compile_result = compile_simulation(True)
17+
compile_result = compile_simulation(debug=True)
1818
os.rename("./src/main.cpp.temp", "./src/main.cpp")
1919
self.assertFalse(compile_result)
2020

@@ -25,7 +25,7 @@ def test_compilation_failure(self):
2525

2626
os.rename("./src/main.cpp", "./src/main.cpp.temp")
2727
os.rename("./src/test_main.cpp", "./src/main.cpp")
28-
compile_result = compile_simulation(True)
28+
compile_result = compile_simulation(debug=True)
2929
self.assertFalse(compile_result)
3030

3131
response = self.client.post('/run_simulation',
@@ -36,5 +36,5 @@ def test_compilation_failure(self):
3636
os.rename("./src/main.cpp.temp", "./src/main.cpp")
3737

3838
def test_compilation_success(self):
39-
compile_result = compile_simulation(True)
39+
compile_result = compile_simulation(debug=True)
4040
self.assertTrue(compile_result)

tests/test_run_simulation_stream.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ def test_run_simulation_stream_success(self):
2828
data=json.dumps(simulation_input),
2929
content_type='application/json')
3030
self.assert200(response)
31+
32+
# Assert response is a server-sent event stream
3133
self.assertEqual(response.mimetype, "text/event-stream")
34+
# Assert Cache-Control header prevents caching
3235
self.assertEqual(response.headers.get("Cache-Control"), "no-cache")
36+
# Assert Connection header is 'keep-alive' for persistent connection
3337
self.assertEqual(response.headers.get("Connection"), "keep-alive")
3438

3539
def test_stream_malformed_json(self):

0 commit comments

Comments
 (0)