# How to set temperature in test cases?

**URL:** https://discourse.cataclysmdda.org/t/how-to-set-temperature-in-test-cases/19988
**Category:** The Toolbox
**Created:** [May 6, 2019, 2:22pm UTC](https://discourse.cataclysmdda.org/t/how-to-set-temperature-in-test-cases/19988 "2019-05-06T14:22:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Hirmuolio](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@Hirmuolio](https://discourse.cataclysmdda.org/u/Hirmuolio)
#### Post date: [May 6, 2019, 2:22pm UTC](https://discourse.cataclysmdda.org/t/how-to-set-temperature-in-test-cases/19988/1 "2019-05-06T14:22:04Z")

</div>

`g->get_temperature( pos )` always returns 0 in the tests.

I have tried `g->m.set_temperature( pos, 20 )`, `g->m.temperature( pos ) = 20` and `g->temperature = 20`. They don’t seem to change anything.

I am going to remove the temperature argument from `process_temperature_rot` and instead get the temperature of the item position in the function. This will break all the current temperature tests.
