Skip to content

Commit

Permalink
Merge pull request #18 from edwardoughton/update_tests
Browse files Browse the repository at this point in the history
Update tests
  • Loading branch information
edwardoughton committed Mar 21, 2021
2 parents dff5348 + b626243 commit ea17f9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def setup_params():
'receiver_gain': 38, #dB
'rain_attenuation': 10, #Rain Attenuation
'all_other_losses': 0.53, #All other losses
'number_of_beams': 1,
}

@fixture(scope='function')
Expand Down
3 changes: 2 additions & 1 deletion tests/test_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,6 @@ def test_calc_capacity():
"""
spectral_efficiency = 1 # bits per Hertz
dl_bandwidth = 1e6 # Hertz
number_of_beams = 1

assert calc_capacity(spectral_efficiency, dl_bandwidth) == 1 #mbps
assert calc_capacity(spectral_efficiency, dl_bandwidth, number_of_beams) == 1 #mbps

0 comments on commit ea17f9e

Please sign in to comment.